/** * Raw TLS transport for Antigravity API requests. * * Bypasses Node.js `fetch()` to give byte-level control over HTTP/1.1 * request serialization, header ordering, and response parsing. Supports * HTTPS CONNECT proxies via standard env vars (HTTPS_PROXY, NO_PROXY). * * Adapted from cortexkit/antigravity-auth agy-transport.ts with fixes * for lifecycle defects, our code style, and clean separation from * header construction (headers come from the caller, not built here). */ export declare const DEFAULT_RESPONSE_HEADER_TIMEOUT_MS = 180000; export declare const DEFAULT_IDLE_TIMEOUT_MS = 180000; export type TransportOptions = { /** Max time to wait for connection + response headers (ms). */ timeoutMs?: number; /** Max time the response body may stall with no bytes before socket is destroyed (ms). */ idleTimeoutMs?: number; signal?: AbortSignal | null; onDebug?: (message: string) => void; }; /** * Drop-in replacement for `fetch()` that uses raw TLS sockets instead * of Node.js built-in fetch. Gives byte-level control over HTTP/1.1 * serialization and supports HTTPS CONNECT proxies. * * @param url - Target URL (must be https) * @param init - Standard RequestInit (method, headers, body, signal) * @param options - Transport-specific options (timeouts, debug callback) */ export declare function fetchWithRawTransport(url: string, init?: RequestInit, options?: TransportOptions): Promise; //# sourceMappingURL=transport.d.ts.map