/** * Hook to access the overall state of the AppKit modal and connection * * @remarks * This hook provides a high-level view of the AppKit's current state, including * whether the modal is open, if it's loading, connection status, and the active chain. * It's useful for coordinating UI elements with the AppKit's state. * * @returns An object containing: * - `isOpen`: Whether the AppKit modal is currently open * - `isLoading`: Whether the AppKit is in a loading state * - `isConnected`: Whether a wallet is currently connected * - `chain`: The currently active blockchain network * * @throws {Error} If used outside of an AppKitProvider * * @example * ```tsx * function MyComponent() { * const { isOpen, isLoading, isConnected, chain } = useAppKitState(); * * return ( * * Modal: {isOpen ? 'Open' : 'Closed'} * Loading: {isLoading ? 'Yes' : 'No'} * Connected: {isConnected ? 'Yes' : 'No'} * {chain && Chain: {chain.name}} * * ); * } * ``` */ export declare function useAppKitState(): { isOpen: boolean; isLoading: boolean; isConnected: boolean; chain: { readonly id: string | number; readonly name: string; readonly nativeCurrency: { readonly name: string; readonly symbol: string; readonly decimals: number; }; readonly rpcUrls: { readonly [x: string]: { readonly http: readonly string[]; } | undefined; readonly default: { readonly http: readonly string[]; }; }; readonly blockExplorers?: { readonly [x: string]: { readonly name: string; readonly url: string; } | undefined; readonly default: { readonly name: string; readonly url: string; }; } | undefined; readonly chainNamespace: "eip155" | "solana" | "bip122"; readonly caipNetworkId: `${string}:${string}`; readonly testnet?: boolean | undefined; readonly deprecatedCaipNetworkId?: `${string}:${string}` | undefined; readonly imageUrl?: string | undefined; } | undefined; }; //# sourceMappingURL=useAppKitState.d.ts.map