import { type Address, type Hex } from 'viem'; import type { ResolvedModule } from '../types.js'; import type { AtomicValidatorDefinition } from './types.js'; export declare const WEBAUTHN_VALIDATOR_ADDRESS: Address; export declare const WEBAUTHN_V0_VALIDATOR_ADDRESS: `0x${string}`; export declare const WEBAUTHN_MOCK_SIGNATURE: "0x0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001b9b86eb98fda3ed4d797d9e690588dfadf17b329a76a47cec935bebf92d7ddc80000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001700000000000000000000000000000000000000000000000000000000000000019b2e9410bb6850f9f660a03d609d5a844fb96bcdc87a15139b03ee22c70f469100d2b865a215c3bf786387064effa8fcedcb1d625b5148f8a1236d5e3ff11acf000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d9763050000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000867b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a22396a4546696a75684557724d34534f572d7443684a625545484550343456636a634a2d42716f3166544d38222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a38303830222c2263726f73734f726967696e223a66616c73657d0000000000000000000000000000000000000000000000000000"; export interface PublicKey { prefix?: number | undefined; x: bigint; y: bigint; } export interface WebauthnCredential { pubKey: PublicKey | Hex | Uint8Array; authenticatorId: string; } export interface WebAuthnSignature { authenticatorData: Hex; clientDataJSON: string; challengeIndex: bigint; typeIndex: bigint; r: bigint; s: bigint; } export declare function parseWebauthnPublicKey(publicKey: Hex | Uint8Array): PublicKey; export declare function parseWebauthnSignature(signature: Hex | Uint8Array): { readonly r: bigint; readonly s: bigint; }; export declare function generateWebauthnCredentialId(pubKeyX: bigint, pubKeyY: bigint, account: Address): Hex; export declare function encodeWebauthnSignatures(credentialIds: readonly Hex[], usePrecompile: boolean, signatures: readonly WebAuthnSignature[]): Hex; export declare function encodeWebauthnSignatureV0(signature: Omit, usePrecompile: boolean): Hex; export declare function encodeWebauthnValidatorContribution(input: { readonly ownerOrder: readonly string[]; readonly threshold: number; readonly account: Address; readonly usePrecompile: boolean; readonly format: 'current' | 'v0'; readonly contributions: readonly { readonly ownerId: string; readonly publicKey: Hex; readonly signature: Hex; readonly authenticatorData: Hex; readonly clientDataJSON: string; readonly challengeIndex: number; readonly typeIndex: number; }[]; }): Hex; export declare function resolveWebauthnCredentials(input: { readonly credentials: readonly WebauthnCredential[]; readonly threshold: number; readonly address?: `0x${string}`; }): ResolvedModule; export declare function resolveWebauthnValidator(definition: AtomicValidatorDefinition): ResolvedModule; //# sourceMappingURL=webauthn.d.ts.map