import { Dispatcher as UndiciDispatcher } from 'undici'; import { type ProviderAddressResolver } from './provider-http-policy'; export type { ProviderAddressResolver, ProviderResolvedAddress } from './provider-http-policy'; export declare function normalizeProviderProxyUrl(value: string | undefined | null): string | undefined; export declare function redactProviderProxyUrl(value: string | undefined | null): string | undefined; export declare function discoverSystemProviderProxy(): string | undefined; /** @internal Runtime compatibility for Bun's inert undici dispatcher shim. */ export declare function closeProviderDispatcher(dispatcher: UndiciDispatcher): Promise; export interface ProviderSseEvent { event?: string; data: string; id?: string; } export interface ProviderHttpTransportOptions { fetch?: typeof fetch; resolver?: ProviderAddressResolver; timeoutMs?: number; /** Exact origins owned by a hermetic test harness; never a general private-network bypass. */ allowedPrivateOrigins?: string[]; systemProxy?: string; } export declare class ProviderHttpTransport { private readonly fetch; private readonly resolver; private readonly timeoutMs; private readonly allowedPrivateOrigins; private readonly systemProxy?; constructor(options?: ProviderHttpTransportOptions); postJson(options: { url: string; apiKey: string; body: any; proxy?: string; headers?: HeadersInit; signal?: AbortSignal; allowPrivateNetwork?: boolean; }): Promise; postStream(options: { url: string; apiKey: string; body: any; proxy?: string; headers?: HeadersInit; signal?: AbortSignal; allowPrivateNetwork?: boolean; }): Promise; postSse(options: { url: string; apiKey?: string; body: any; proxy?: string; headers?: HeadersInit; signal?: AbortSignal; allowPrivateNetwork?: boolean; }): AsyncIterable; getJson(options: { url: string; apiKey?: string; proxy?: string; headers?: HeadersInit; signal?: AbortSignal; allowPrivateNetwork?: boolean; }): Promise; private resolveTarget; private prepareRequest; } export declare function parseSseStream(stream: ReadableStream): AsyncIterable;