import { AuthenticationJSON, NamedAlgo, RegistrationJSON, RegistrationInfo, AuthenticationInfo, Base64URLString, CredentialInfo } from "./types.js"; export declare function randomChallenge(): string; interface RegistrationChecks { challenge: string | Function; origin: string | Function; userVerified?: boolean; domain?: string; verbose?: boolean; } export declare function verifyRegistration(registrationJson: RegistrationJSON, expected: RegistrationChecks): Promise; interface AuthenticationChecks { challenge: string | Function; origin: string | Function; userVerified: boolean; counter?: number; domain?: string; verbose?: boolean; } export declare function verifyAuthentication(authenticationJson: AuthenticationJSON, credential: CredentialInfo, expected: AuthenticationChecks): Promise; export declare function parseCryptoKey(algorithm: NamedAlgo, publicKey: string): Promise; type VerifyParams = { algorithm: NamedAlgo; publicKey: Base64URLString; authenticatorData: Base64URLString; clientData: Base64URLString; signature: Base64URLString; verbose?: boolean; }; export declare function verifySignature({ algorithm, publicKey, authenticatorData, clientData, signature, verbose }: VerifyParams): Promise; export {};