/** * Retry utilities for the proxy server. */ /** * Check if a fetch error is a transient connection error worth retrying. * These occur when renderer pods are being recycled or temporarily unavailable. */ export declare function isRetryableConnectionError(error: unknown): boolean; export declare function isConnectionRefusedError(error: unknown): boolean; /** * Decide how many times the proxy can safely retry an upstream request. * * Ordinary non-idempotent requests are not replayed. A bounded control-plane * run stream invocation may retry to the shared runtime when the dedicated * runtime refuses the connection. Missing, chunked, invalid, and oversized * bodies remain single-shot so teeing cannot buffer unbounded input. */ export declare function getUpstreamRetryCount(request: Request, pathname: string, configuredRetryCount: number): number; /** Decide whether this failure mode is safe to replay for the request. */ export declare function shouldRetryUpstreamRequest(request: Request, pathname: string, error: unknown): boolean; /** * Build one independently consumable body stream for every upstream attempt. * Request bodies are one-shot streams, so reusing the first stream would make * a retry fail before it reaches the fallback runtime. Tee branches created * before the first fetch preserve the exact signed bytes for each attempt. */ export declare function getReplayableRequestBodies(request: Request, retryCount: number): Array | null>; //# sourceMappingURL=retry.d.ts.map