import { type BffClient, type BffClientOptions, type BffUser } from './client.js'; export interface UseUser { /** null until the first load resolves. */ user: BffUser | null; loading: boolean; /** Re-fetch `/bff/user`. */ refresh: () => void; login: (returnUrl?: string) => void; logout: () => void; /** Anti-forgery fetch + `/bff/api/*` proxy helper (see {@link BffClient}). */ fetch: BffClient['fetch']; apiFetch: BffClient['apiFetch']; } /** React hook over the BFF: loads `/bff/user` on mount and exposes login/logout + the CSRF fetch helpers. */ export declare function useUser(options?: BffClientOptions): UseUser;