/** * Outbound HTTP for PayPal API calls with timeout, circuit breaker, and * optional retry for critical payment operations. */ export declare const PAYPAL_HTTP_TIMEOUT_MS: number; export declare class CircuitOpenError extends Error { constructor(); } /** * `fetch` with a default timeout (`PAYPAL_HTTP_TIMEOUT_MS`) and a per-host * circuit breaker. 5xx responses and network/timeout errors count as failures; * once the breaker opens, calls to that host reject immediately with * `CircuitOpenError` until the half-open probe succeeds. */ export declare function paypalFetch(input: string | URL, init?: RequestInit): Promise; /** * `paypalFetch` with bounded exponential-backoff retries on 5xx/429, timeouts, * and an open circuit. Only use for calls that are idempotent on PayPal's side * (i.e. carry a `PayPal-Request-Id`) — otherwise a retry can double-charge. */ export declare function paypalFetchWithRetry(input: string | URL, init?: RequestInit): Promise; //# sourceMappingURL=paypal-fetch.d.ts.map