import { TokenSet } from "openid-client";
import type { Client } from "openid-client";
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;
}
declare const _default: ({ client, redirectUri, }: {
    client: Client;
    redirectUri: string;
}) => ({ paramsFromCallback, localParams, }: {
    paramsFromCallback: ParamsFromCallback;
    localParams: LocalParams;
}) => Promise<TokenSet>;
export default _default;
//# sourceMappingURL=exchange-code-for-token.d.ts.map