export interface WhopPayment { id: string; status: 'succeeded' | 'declined' | 'pending'; requireAction: 'none' | 'redirect' | 'error'; orderId: string; amount: number; currency: string; order?: { id: string; amount: number; currency: string; }; } export interface UseWhopPaymentPollingOptions { apiService: { fetch: (url: string, options: any) => Promise; }; checkoutSessionId: string; maxAttempts?: number; intervalMs?: number; onSuccess?: (payment: WhopPayment) => void; onMaxAttemptsReached?: () => void; onError?: (error: Error) => void; } export interface UseWhopPaymentPollingReturn { startPolling: (receiptId: string, orderId: string) => void; stopPolling: () => void; isPolling: boolean; } export declare const useWhopPaymentPolling: ({ apiService, checkoutSessionId, maxAttempts, intervalMs, onSuccess, onMaxAttemptsReached, onError, }: UseWhopPaymentPollingOptions) => UseWhopPaymentPollingReturn;