interface CachedAssertion { userHandleB64url: string; credentialIdB64url: string; } /** * Generate fresh user.id bytes for a new WebAuthn credential. The * caller overrides `options.user.id` with these bytes before * navigator.credentials.create so the authenticator persists them as * the credential's user.id; on every subsequent assertion they come * back as response.userHandle and serve as the AES-GCM key for that * credential's DEK wrap. * * Returns the bytes both as base64url (what the WebAuthn options * accept and what we ship over postMessage) and as raw bytes (for * any caller that prefers direct binary). * * Requires a working `crypto.getRandomValues`. On RN this is provided * by the `react-native-get-random-values` polyfill that the SDK's * docs ask consumers to import at app entry. */ declare const generatePasskeyUserId: () => { userIdB64url: string; userIdBytes: Uint8Array; }; export { type CachedAssertion as C, generatePasskeyUserId as g };