import { WalletsModal } from '@tonconnect/ui'; /** * Reactive wrapper around `tonConnectUI.modal`. Returns `{ state, open, * close }` — `state` mirrors `WalletsModalState` and re-renders on every * modal lifecycle event; `open` / `close` are convenience bindings. * * Must be called inside a ``. Use this hook when the * dApp wants its own "Connect" UI separate from ``. * * @example * ```tsx * const { state, open, close } = useTonConnectModal(); * * return ( * <> *
Modal status: {state?.status}
* * * * ); * ``` */ export declare function useTonConnectModal(): Omit;