import { ReactNode, ReactElement } from 'react'; import { C as CaatingaWalletAdapter } from './types-D4XEyX4J.js'; import { c as WalletSessionState, a as WalletSession, b as WalletSessionOptions } from './wallet-session-DeLp8S1c.js'; export { C as CaatingaWalletCapabilities, W as WALLET_SESSION_STORAGE_KEY, d as WalletSessionStatus, e as WalletSessionStorage, f as createWalletSession } from './wallet-session-DeLp8S1c.js'; import '@caatinga/core/browser'; interface WalletProviderProps { /** Adapter the provider wraps in a session. Ignored when `session` is given. */ adapter?: CaatingaWalletAdapter; /** Pre-built session (e.g. shared with non-React code). Takes precedence over `adapter`. */ session?: WalletSession; /** Session options applied when the provider creates the session from `adapter`. */ options?: WalletSessionOptions; /** * Run `session.restore()` on mount for silent reconnect. * Defaults to true when persistence is enabled, false otherwise. */ autoConnect?: boolean; children?: ReactNode; } declare function WalletProvider(props: WalletProviderProps): ReactElement; declare function useWalletSession(): WalletSession; interface UseWalletResult extends WalletSessionState { connected: boolean; connecting: boolean; connect(): Promise; disconnect(): Promise; session: WalletSession; } declare function useWallet(): UseWalletResult; export { type UseWalletResult, WalletProvider, type WalletProviderProps, WalletSession, WalletSessionOptions, WalletSessionState, useWallet, useWalletSession };