export declare class TransportError extends Error { readonly code: "TIMEOUT" | "NETWORK_ERROR" | "UNKNOWN_PROVIDER_ERROR"; constructor(code: "TIMEOUT" | "NETWORK_ERROR" | "UNKNOWN_PROVIDER_ERROR"); } export interface DeadlineScope { readonly signal: AbortSignal; checkDeadline(): void; } /** Segments long timers and checks synchronous parsing against a monotonic clock. */ export declare function withDeadline(timeoutMs: number, work: (scope: DeadlineScope) => Promise): Promise; export interface HttpResponseSnapshot { readonly status: number; readonly bodyText?: string; readonly requestId?: string; } export type RequestOnce = (endpoint: URL, headers: Readonly>, body: string, scope: DeadlineScope) => Promise; /** One ClientRequest, no redirects/retries; settle only after owned streams close. */ export declare const requestOnce: RequestOnce; //# sourceMappingURL=http.d.ts.map