import { AuthProvider, User, ClientConfig } from '@bounded-sh/core'; import { LoginOptions, LogoutOptions } from './auth'; export declare function init(newConfig: Partial): Promise; /** * Wait for the current init() call, including stored-session restoration. * * The promise rejects with the original initialization error. Once it resolves, * the returned user is the authoritative restored user, or null when signed out. */ export declare function waitForAuthReady(): Promise; export declare function onAuthStateChanged(callback: (user: User | null) => void): () => void; export declare function onAuthLoadingChanged(callback: (loading: boolean) => void): () => void; export declare function setAuthLoading(loading: boolean): void; export declare function getAuthLoading(): boolean; export declare function login(options?: LoginOptions): Promise; export type { LoginOptions, LogoutOptions }; export declare function logout(options?: LogoutOptions): Promise; export declare function setCurrentUser(user: User | null): User | null; export declare function getCurrentUser(): User | null; /** @internal Snapshot/restore surface for transactional auth-provider switches. */ export declare function getAuthProviderInstance(): AuthProvider | null; export declare function setAuthProviderInstance(provider: AuthProvider | null): void;