import type { AccountBalance } from "@0xmonaco/types"; /** * Return type for the useUserBalances hook */ export interface UseUserBalancesReturn { /** Array of user balances, updated in real-time via WebSocket */ balances: AccountBalance[]; /** Whether initial data is being loaded */ loading: boolean; /** Whether currently subscribed to balances channel */ subscribed: boolean; /** Any error that occurred during connection or subscription */ error: Error | null; /** Clear the current error state */ clearError: () => void; /** Manually refresh balances from REST API */ refresh: () => Promise; }