export declare type CodeResponse = { code: string; state?: string; }; export declare type IdTokenResponse = { id_token: string; state?: string; }; export declare type ErrorResponse = { error: string; error_description?: string; state?: string; }; export declare type AuthorizeResponse = CodeResponse | IdTokenResponse | ErrorResponse; export declare function parseQueryResponse(input: string | URLSearchParams): AuthorizeResponse | null; export declare function parseURLResponse(input: string | URL): AuthorizeResponse | null;