export interface WalletLoginFinalizeDeps { /** The wallet address that just signed in (the identity the app should end up as). */ finalAddress: string; /** Read the currently stored Bounded session (null if none). */ getSession: () => Promise<{ address?: string | null; } | null>; /** Mint + store a Bounded session for `finalAddress`. Rejects on failure. */ createSession: () => Promise; /** Drop any stored session (used to clear a stale/mismatched one on failure). */ clearSession: () => Promise | void; /** Called exactly once when the login is confirmed: set current user + resolve. */ onSuccess: () => void; /** Called exactly once when the login must fail: reject with this error. */ onFailure: (error: unknown) => void; } export declare function finalizeWalletLogin(deps: WalletLoginFinalizeDeps): Promise;