/// export declare function getLogEntries(): { msg: string; detail: any; }[]; export declare const REQUEST_PID_KEY = "__webauthn:request:pid__"; export declare const RESPONSE_PID_KEY = "__webauthn:response:pid__"; export declare const FORWARDING_KEY = "__webauthn:forwarding:flag__"; export declare const globalThis: Window; export declare const selfOrigin: string; export interface RevokeAllow { (): void; } export declare function allowFrom(originPatterns: string[]): RevokeAllow; export declare function convertOriginPatterns(patterns: string[]): RegExp[]; export declare function isTrustedOrigin(origins: RegExp[], origin: string): boolean; export declare function isCredentialsSupported(): boolean; export declare function allowFor(originPatterns: string[]): void; export declare function allowedFor(origin: string): boolean; export declare const credentials: { create(options?: CredentialCreationOptions | undefined): Promise; get(options?: CredentialRequestOptions | undefined): Promise; }; export declare type Encode = T extends Node | Function ? T : { [K in keyof T]: EncodeValue; }; export declare type EncodeValue = (V extends BufferSource ? string : V extends object ? Encode : V); export declare type PublicKeyCredentialWithResponse = PublicKeyCredential & { readonly response: R; }; export declare type PublicKeyCredentialWithAttestationResponse = PublicKeyCredentialWithResponse; export declare type PublicKeyCredentialWithAssertionResponse = PublicKeyCredentialWithResponse; export declare type PhaseRequest = (params: P) => Promise | R; export declare type PhaseRequestReturnType = T extends PhaseRequest ? R : never; export declare type MultiPhaseRequest

> = ((params: P) => Promise>) & { phase: , any>>(request: T) => MultiPhaseRequest; }; export declare function createMultiPhaseRequest

(): MultiPhaseRequest>; export declare function fetchJSON(url: string, params: object): Promise; export declare type WithOptions = { options: T; }; export declare type OptionsAndExtra, O> = { extra: Omit; options: O; }; export declare function parseAsCredentialCreationOptionsAndExtra>>(data: T): OptionsAndExtra; export declare function parseAsCredentialRequestOptionsAndExtra>>(data: T): OptionsAndExtra; export declare function decodeBuffer(value: string): ArrayBuffer; export declare function encodeBuffer(buffer: ArrayBuffer): string; export declare function decodeTXAuthGenericArg(tx: Encode): txAuthGenericArg; export declare function decodeAuthenticationExtensions(ext: Encode): AuthenticationExtensionsClientInputs; export declare function decodePublicKeyCredentialCreationOptions(pk: Encode): PublicKeyCredentialCreationOptions; export declare function decodePublicKeyCredentialRequestOptions(pk: Encode): PublicKeyCredentialRequestOptions; /** navigation.credentials.create(options) */ export declare function decodeCredentialCreationOptions(options: Encode): CredentialCreationOptions; /** navigation.credentials.get(options) */ export declare function decodeCredentialRequestOptions(options: Encode): CredentialRequestOptions; export declare function decodeAttestationResponsePayload(credential: Encode): PublicKeyCredentialWithAttestationResponse; export declare function encodeAttestationResponsePayload(credential: PublicKeyCredentialWithAttestationResponse): Encode; export declare function encodeAssertionResponsePlayload(credential: PublicKeyCredentialWithAssertionResponse): Encode; export declare function decodeAssertionResponsePlayload(credential: Encode): PublicKeyCredentialWithAssertionResponse; export {};