import { Crypto } from './crypto_utils';
import { StringMap } from './types';
/**
 * Represents an AuthorizationRequest as JSON.
 */
export interface AuthorizationRequestJson {
    response_type: string;
    client_id: string;
    redirect_uri: string;
    scope: string;
    state?: string;
    extras?: StringMap;
    internal?: StringMap;
}
/**
 * Represents the AuthorizationRequest.
 * For more information look at
 * https://tools.ietf.org/html/rfc6749#section-4.1.1
 */
export declare class AuthorizationRequest {
    private crypto;
    private usePkce;
    static RESPONSE_TYPE_TOKEN: string;
    static RESPONSE_TYPE_CODE: string;
    clientId: string;
    redirectUri: string;
    scope: string;
    responseType: string;
    state: string;
    extras?: StringMap;
    internal?: StringMap;
    /**
     * Constructs a new AuthorizationRequest.
     * Use a `undefined` value for the `state` parameter, to generate a random
     * state for CSRF protection.
     */
    constructor(request: AuthorizationRequestJson, crypto?: Crypto, v6?: boolean);
    setupCodeVerifier(): Promise<void>;
    /**
     * Serializes the AuthorizationRequest to a JavaScript Object.
     */
    toJson(): Promise<AuthorizationRequestJson>;
}
