import { b as PostMessageClient } from '../post-message-ufv3D_fs.js'; import { T as Transport, P as PasskeyAssertor, K as KvStorage } from '../interfaces-_8SljvDt.js'; declare const getCachedPostMessageClient: (contentWindow: Window) => PostMessageClient; /** * Create a web Transport bound to an iframe's contentWindow. Pass a * getter for the iframe ref so the Transport survives mounts/remounts * (the iframe's contentWindow can change). `isReady` short-circuits * the SDK methods before they try to send to a not-yet-mounted iframe. */ declare const createIframeTransport: ({ getContentWindow, isReady, }: { getContentWindow: () => Window | null | undefined; isReady: () => boolean; }) => Transport; declare const createWebAuthnPasskey: () => PasskeyAssertor; declare const createLocalStorageKv: (prefix?: string) => KvStorage; /** The exact message the backend verifies. */ declare const sessionResumeMessage: (sessionId: string, challenge: string) => string; /** * Returns this browser's resume public key for the app, creating the key on * first use. Null when the browser cannot hold one. */ declare const getOrCreateSessionResumePublicKey: (publishableKey: string) => Promise; /** Records the session the key is bound to. Ignored if the key changed. */ declare const setSessionResumeSessionId: (publishableKey: string, publicKey: string, sessionId: string) => Promise; /** * Forgets which session the key is bound to, keeping the key. Used when a * bind did not confirm the current session, so a stale id (for example from * the previous account) can never resume. */ declare const clearSessionResumeSessionId: (publishableKey: string) => Promise; /** The session id a resume can be attempted for, or null. */ declare const getSessionResumeSessionId: (publishableKey: string) => Promise; /** * Signs a resume challenge for the bound session. Signs only the fixed * resume message format, never caller-chosen bytes. */ declare const signSessionResumeChallenge: (publishableKey: string, sessionId: string, challenge: string) => Promise; /** * Deletes the app's resume key, retrying once. Called on logout and on a * final rejection. Returns false when the key may still exist, so logout can * report it; logout still revokes the server session, which makes a leftover * key useless. */ declare const clearSessionResumeKey: (publishableKey: string) => Promise; export { clearSessionResumeKey, clearSessionResumeSessionId, createIframeTransport, createLocalStorageKv, createWebAuthnPasskey, getCachedPostMessageClient, getOrCreateSessionResumePublicKey, getSessionResumeSessionId, sessionResumeMessage, setSessionResumeSessionId, signSessionResumeChallenge };