import type { ClerkJWTClaims } from '@clerk/types'; import type { CryptoKey as PeculiarCryptoKey } from '@peculiar/webcrypto'; import { AuthState, AuthStateParams, BuildAuthenticatedStateOptions, JWT, VerifySessionTokenOptions } from './types'; export declare const API_KEY: string; type ImportKeyFunction = (...args: any[]) => Promise; type LoadCryptoKeyFunction = (token: string) => Promise; type DecodeBase64Function = (base64Encoded: string) => string; type VerifySignatureFunction = (...args: any[]) => Promise; export declare class Base { importKeyFunction: ImportKeyFunction; verifySignatureFunction: VerifySignatureFunction; decodeBase64Function: DecodeBase64Function; loadCryptoKeyFunction?: LoadCryptoKeyFunction; constructor(importKeyFunction: ImportKeyFunction, verifySignatureFunction: VerifySignatureFunction, decodeBase64Function: DecodeBase64Function, loadCryptoKeyFunction?: LoadCryptoKeyFunction); verifySessionToken: (token: string, { authorizedParties, jwtKey }?: VerifySessionTokenOptions) => Promise; loadCryptoKey: (key?: string) => Promise; decodeJwt: (token: string) => JWT; verifyJwtSignature: (key: CryptoKey, token: string) => Promise; verifyJwt: (key: CryptoKey, token: string) => Promise; getAuthState: ({ cookieToken, clientUat, headerToken, origin, host, forwardedHost, forwardedPort, forwardedProto, referrer, userAgent, authorizedParties, fetchInterstitial, jwtKey, }: AuthStateParams) => Promise; buildAuthenticatedState: (token: string, { authorizedParties, jwtKey, fetchInterstitial, tokenType }: BuildAuthenticatedStateOptions) => Promise; } export {};