import type { User } from "@bounded-sh/core"; import type { HostedAuthMethod } from "./oidc-auth"; export interface BoundedWidgetOptions { /** Which hosted methods to surface as buttons. Defaults to ['email','google']. */ methods?: readonly HostedAuthMethod[]; /** Show the "Continue with wallet" option. Defaults to auto (on if a wallet is * detected or wallet-login is enabled in init config). */ wallet?: boolean; redirectUri?: string; title?: string; subtitle?: string; /** * Login mode. Defaults to the app's init() `authMode` ("turnkey" when omitted). In * "turnkey" mode the email lane runs Turnkey-native OTP INLINE in the widget * (no OIDC popup); social + wallet lanes are unchanged. The widget shape and * look are identical in both modes. */ authMode?: "bounded" | "turnkey"; } /** * Open the unified Bounded login widget and resolve with the signed-in `User`. * Rejects with `Error("cancelled")` if the user dismisses it. `init()` must have * run first; call from a user gesture so social/wallet popups are allowed. */ export declare function openBoundedWidget(opts?: BoundedWidgetOptions): Promise;