@luxorai/sandbox
Version:
TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud
16 lines (15 loc) • 920 B
TypeScript
import type http2 from "node:http2";
import { Http2SessionManager } from "@connectrpc/connect-node";
export declare const isBunRuntime: boolean;
export declare const KEEPALIVE_PING_OPTIONS: {
pingIntervalMs: number;
pingTimeoutMs: number;
};
export declare function deferDestroyUntilDrained(stream: http2.ClientHttp2Stream): void;
export declare class DrainingHttp2SessionManager extends Http2SessionManager {
private readonly drain;
private readonly enlargeWindow;
private readonly configuredSessions;
constructor(url: URL | string, pingOptions?: ConstructorParameters<typeof Http2SessionManager>[1], http2SessionOptions?: ConstructorParameters<typeof Http2SessionManager>[2], drain?: boolean, enlargeWindow?: boolean);
request(method: string, path: string, headers: http2.OutgoingHttpHeaders, options: Omit<http2.ClientSessionRequestOptions, "signal">): Promise<http2.ClientHttp2Stream>;
}