export type HeadersInit = Record; import type { ProviderId, TelemetryHooks } from './types'; export interface RequestOptions { method?: string; headers?: HeadersInit; body?: any; signal?: AbortSignal; provider?: ProviderId; model?: string; stream?: boolean; requestId?: string; telemetry?: TelemetryHooks; } export declare function joinUrl(base: string, path: string): string; export declare function http(url: string, opts?: RequestOptions): Promise; export declare function readLines(stream: ReadableStream): AsyncGenerator; export declare function parseSSE(stream: ReadableStream, meta?: { telemetry?: TelemetryHooks; provider?: ProviderId; model?: string; requestId?: string; }): AsyncGenerator<{ event?: string; data?: string; } | null>;