import { RequestInit } from "node-fetch"; export interface RuntimeConnection { sandboxId: string; baseUrl: string; token: string; directSessionHeader?: boolean; } export interface RuntimeSSEEvent { event: string; data: unknown; id?: string; } type RuntimeParams = Record; export declare class RuntimeTransport { private readonly resolveConnection; private readonly timeout; private readonly runtimeProxyOverride?; constructor(resolveConnection: (forceRefresh?: boolean) => Promise, timeout?: number, runtimeProxyOverride?: string | undefined); requestJSON(path: string, init?: RequestInit, params?: RuntimeParams): Promise; requestBuffer(path: string, init?: RequestInit, params?: RuntimeParams): Promise; streamSSE(path: string, params?: RuntimeParams): AsyncGenerator; private fetchWithAuth; private fetchForConnection; private assertResponse; private buildHeaders; private buildRequestPath; } export {};