import { type Asset } from '../../components/Openfort/types.js'; /** * Hook for controlling Openfort UI modal and navigation * * This hook provides programmatic control over the Openfort UI modal, including opening, * closing, and navigating between different screens. It handles route validation and * automatically selects appropriate screens based on user connection and authentication state. * * @returns UI control functions and modal state * * @example * ```tsx * const ui = useUI(); * * if (ui.isOpen) { * console.log('Openfort modal is open'); * } * * ui.open(); // Opens modal with default route * ui.close(); // Closes modal * ui.openProfile(); // Opens the connected wallet overview * ui.openSend(); // Opens the Send flow * ui.openFunding(); // Opens the Deposit (funding) hub * ``` * * The `open*` navigation helpers target connected-only screens. When called while * the user is not connected they fall back to the login screen, so a caller can * fire them directly and let the modal route the user through auth first. */ export declare function useUI(): { isOpen: boolean; open: () => void; close: () => void; setIsOpen: (value: boolean) => void; openProfile: () => void; openSwitchNetworks: () => void; openProviders: () => void; openWallets: () => void; openSend: (tx?: { to: string; amount: string; asset?: Asset; }) => void; openReceive: () => void; openFunding: () => void; openBuy: () => void; openExportKey: () => void; openSettings: () => void; };