import { type Address, type Hex } from 'viem'; interface WebAuthnSignature { authenticatorData: Hex; clientDataJSON: string; challengeIndex: bigint; typeIndex: bigint; r: bigint; s: bigint; } declare function parsePublicKey(publicKey: Hex | Uint8Array): { x: bigint; y: bigint; }; declare function parseSignature(signature: Hex | Uint8Array): { r: bigint; s: bigint; }; declare function generateCredentialId(pubKeyX: bigint, pubKeyY: bigint, account: Address): `0x${string}`; declare function packSignature(credIds: Hex[], usePrecompile: boolean, webAuthns: { authenticatorData: Hex; clientDataJSON: string; challengeIndex: bigint; typeIndex: bigint; r: bigint; s: bigint; }[]): Hex; declare function packSignatureV0(webauthn: { authenticatorData: Hex; clientDataJSON: string; typeIndex: number | bigint; r: bigint; s: bigint; }, usePrecompiled: boolean): `0x${string}`; declare const WEBAUTHN_AUTH_ABI_COMPONENTS: readonly [{ readonly type: "bytes"; readonly name: "authenticatorData"; }, { readonly type: "string"; readonly name: "clientDataJSON"; }, { readonly type: "uint256"; readonly name: "challengeIndex"; }, { readonly type: "uint256"; readonly name: "typeIndex"; }, { readonly type: "uint256"; readonly name: "r"; }, { readonly type: "uint256"; readonly name: "s"; }]; /** * Encodes WebAuthn auth structs as a bare `WebAuthnAuth[]` ABI tuple array. * * This is the format expected by the deployed WebAuthn validator's * `validateSignatureWithData` `signature` parameter when the validator is used * as an MFA subvalidator. It differs from the full V1 packing produced by * `packSignature`, which also includes `credentialIds` and `usePrecompile`. */ declare function packWebAuthnAuths(webAuthns: { authenticatorData: Hex; clientDataJSON: string; challengeIndex: bigint; typeIndex: bigint; r: bigint; s: bigint; }[]): Hex; export { parsePublicKey, parseSignature, generateCredentialId, packSignature, packSignatureV0, packWebAuthnAuths, WEBAUTHN_AUTH_ABI_COMPONENTS, }; export type { WebAuthnSignature }; //# sourceMappingURL=passkeys.d.ts.map