import type { Order } from "@0xmonaco/types"; /** * Return type for the useUserOrders hook */ export interface UseUserOrdersReturn { /** Array of user orders (merged from REST API and WebSocket updates) */ orders: Order[]; /** Whether initial data is being loaded */ loading: boolean; /** Whether currently subscribed to orders channel */ subscribed: boolean; /** Any error that occurred during connection or subscription */ error: Error | null; /** Clear the current error state */ clearError: () => void; /** Manually refresh orders from REST API */ refresh: () => Promise; }