export declare const MAX_RETRIES = 5; export interface WithRetriesOptions { /** Error codes that trigger a retry. Default: [4211] (SimulationFailedRpcError) */ errorCodes?: number[]; /** Maximum number of retries (0-10). Default: 0 (no retries) */ max?: number; /** Delay in ms before each retry. Default: 200 */ delay?: number; /** Backoff strategy. 'fixed' keeps constant delay, 'exponential' doubles each retry. Default: 'exponential' */ backoff?: 'fixed' | 'exponential'; /** Maximum delay in ms. Caps exponential backoff so it never exceeds this value. Default: 10000 */ maxDelay?: number; } export declare function withRetries(fn: () => Promise, options?: WithRetriesOptions): Promise; //# sourceMappingURL=withRetries.d.ts.map