from _typeshed import Incomplete

from authlib.oauth2 import AuthorizationServer as _AuthorizationServer
from authlib.oauth2.rfc6750 import BearerTokenGenerator

from .requests import DjangoJsonRequest, DjangoOAuth2Request

class AuthorizationServer(_AuthorizationServer):
    client_model: Incomplete
    token_model: Incomplete
    def __init__(self, client_model, token_model) -> None: ...
    config: Incomplete
    scopes_supported: Incomplete
    def load_config(self, config) -> None: ...
    def query_client(self, client_id): ...
    def save_token(self, token, request): ...
    def create_oauth2_request(self, request) -> DjangoOAuth2Request: ...
    def create_json_request(self, request) -> DjangoJsonRequest: ...
    def handle_response(self, status_code, payload, headers): ...
    def send_signal(self, name, *args, **kwargs) -> None: ...
    def create_bearer_token_generator(self) -> BearerTokenGenerator: ...

def create_token_generator(token_generator_conf, length: int = 42): ...
def create_token_expires_in_generator(expires_in_conf=None): ...
