import { Order } from '../types'; export interface UseOrderOptions { /** * Whether to automatically fetch order data when orderId is provided * @default true */ autoFetch?: boolean; /** * Order ID to fetch */ orderId?: string; /** * Whether the hook is enabled/should run * @default true */ enabled?: boolean; } export interface UseOrderResult { /** * Order data */ order: Order | null; /** * Loading state */ isLoading: boolean; /** * Error state */ error: Error | null; /** * Fetch order by ID */ fetchOrder: (orderId: string) => Promise; /** * Refetch the current order */ refetch: () => Promise; /** * Clear order data */ clear: () => void; } export declare function useOrder(options?: UseOrderOptions): UseOrderResult;