import { AuthorizationServiceConfiguration } from './authorization_service_configuration'; import { QueryStringUtils } from './query_string_utils'; import { RevokeTokenRequest } from './revoke_token_request'; import { TokenRequest } from './token_request'; import { TokenResponse } from './token_response'; import { Requestor } from './xhr'; /** * Represents an interface which can make a token request. */ export interface TokenRequestHandler { /** * Performs the token request, given the service configuration. */ performTokenRequest(configuration: AuthorizationServiceConfiguration, request: TokenRequest): Promise; performRevokeTokenRequest(configuration: AuthorizationServiceConfiguration, request: RevokeTokenRequest): Promise; } /** * The default token request handler. */ export declare class BaseTokenRequestHandler implements TokenRequestHandler { readonly requestor: Requestor; readonly utils: QueryStringUtils; constructor(requestor?: Requestor, utils?: QueryStringUtils); private isTokenResponse; performRevokeTokenRequest(configuration: AuthorizationServiceConfiguration, request: RevokeTokenRequest): Promise; performTokenRequest(configuration: AuthorizationServiceConfiguration, request: TokenRequest): Promise; }