import { type Address, type Rpc, type SolanaRpcApi } from "@solana/kit"; import { type Secp256r1Pubkey } from "../../generated/index.js"; import { type Base64URLString } from "../passkey/webauthn.js"; /** * Derive the token PDA from the compressed secp256r1 passkey public key. * Accepts a parsed {@link Secp256r1Pubkey} or a base64url-encoded string * (the same shape as a recovered phygital `response.id` / compressed passkey). * PDA seeds: `["token", pubkey[1..]]` — the compressed-point prefix byte is dropped. */ export declare function findPhygitalTokenPda(secp256r1Pubkey: Secp256r1Pubkey | Base64URLString): Promise
; /** * Recover a compressed secp256r1 public key from a WebAuthn assertion. * When multiple keys verify the signature, selects the candidate whose * {@link findPhygitalTokenPda} exists on-chain. */ export declare function recoverSecp256r1PublicKeyWithPhygitalToken(rpc: Rpc, signature: Uint8Array, message: Uint8Array): Promise; /** * Offline variant of {@link recoverSecp256r1PublicKeyWithPhygitalToken}: picks * the single verifying candidate that is in `allowList`, with no network call. */ export declare function recoverSecp256r1PublicKeyWithAllowList(allowList: ReadonlySet, signature: Uint8Array, message: Uint8Array): Uint8Array; //# sourceMappingURL=token.d.ts.map