import type { DataPollResponse, DataVerificationResult } from "./data.types"; export declare const INITIAL_DELAY_MS = 1000; export declare const MAX_DELAY_MS = 5000; export declare const BACKOFF_FACTOR = 1.5; export declare const POLLING_DEADLINE_MS = 120000; export declare const MAX_CONSECUTIVE_FAILURES = 3; /** Maximum Retry-After value the SDK will respect (30s). Prevents server abuse. */ export declare const MAX_RETRY_AFTER_MS = 30000; /** * Response wrapper that carries optional headers alongside the parsed body. * When headers are not available, only body is required. */ export interface PollResponseWithHeaders { body: DataPollResponse; headers?: Record; } /** * Polls GET /transactions/{id}/data until terminal status. * * Supports: * - Exponential backoff with configurable ceiling * - Retry-After header override (integer seconds, capped at 30s) * - Monotonic deadline tracking via `performance.now()` (not wall clock) * - Consecutive failure budget before surfacing network error * * PII (person fields) is intentionally NOT included in the SDK result. * For PII, the app must call GET /transactions/{id}/data/result directly. */ export declare function pollForDataResult(transactionId: string, authorizedGet: (path: string) => Promise, signal?: AbortSignal): Promise;