import { TokenSet } from "openid-client"; import type { Client } from "openid-client"; import type { PkceExchangeOptions } from "./pkce"; declare const ALLOWED_PARAMS: readonly ["access_token", "code", "error", "error_description", "error_uri", "expires_in", "id_token", "state", "token_type", "session_state"]; export declare type ParamsFromCallback = { [K in typeof ALLOWED_PARAMS[number]]?: any; }; export interface LocalParams { max_age?: any; state: any; response_type?: any; nonce?: any; code_verifier?: any; sub?: any; } export interface ExchangeCodeForTokensOptions { paramsFromCallback: ParamsFromCallback; localParams: LocalParams; } export interface ExchangeCodeForTokensUsingPKCEOptions extends ExchangeCodeForTokensOptions { pkce?: PkceExchangeOptions; } declare const _default: ({ client, redirectUri, }: { client: Client; redirectUri: string; }) => { exchangeCodeForTokens: ({ paramsFromCallback, localParams, }: ExchangeCodeForTokensOptions) => Promise; exchangeCodeForTokensUsingPKCE: ({ paramsFromCallback, localParams, pkce, }: ExchangeCodeForTokensUsingPKCEOptions) => Promise; }; export default _default; //# sourceMappingURL=exchange-code-for-token.d.ts.map