/** * Payment Retrieve Hook using TanStack Query (V2) * Handles payment status retrieval after external redirects * This is useful for processors that require server-side status checks (e.g., some 3DS flows) */ import { TagadaError } from '../../core/errors'; export interface RetrieveResult { retrieveResult?: { status?: string; message?: string; success?: boolean; }; paymentId: string; transactionCreated?: boolean; status?: string; transactionId?: string; message?: string; success?: boolean; error?: string; } export interface PaymentRetrieveHook { startRetrievePolling: (paymentId: string) => Promise; isLoading: boolean; error: TagadaError | null; isPolling: boolean; } export declare function usePaymentRetrieve(): PaymentRetrieveHook;