// Types for the vendored BioLock server (server.js, public domain). export type Jwk = Record; export type CredentialJSON = Record; export interface Stored { id: string; alg: number; publicKey: Jwk; counter: number } export function randomB64u(n?: number): string; export function registrationOptions(o: { rpId: string; rpName?: string; userId?: string; userName: string; displayName?: string; excludeIds?: string[]; timeout?: number }): { challenge: string } & Record; export function signInOptions(o: { rpId: string; deviceCredentialIds?: string[]; timeout?: number }): { challenge: string } & Record; export function verifyRegistration(o: { credential: unknown; expectedChallenge: string; expectedOrigin: string; rpId: string; requireUserVerification?: boolean }): Promise<{ id: string; alg: number; publicKey: Jwk; counter: number; transports: string[]; backupEligible: boolean; backedUp: boolean; createdAt: number }>; export function verifySignIn(o: { credential: unknown; stored: Stored; expectedChallenge: string; expectedOrigin: string; rpId: string; requireUserVerification?: boolean }): Promise<{ userHandle: string | null; counter: number; backedUp: boolean }>;