UNPKG

@luxorai/sandbox

Version:

TypeScript SDK for Luxor Sandbox: cloud sandboxes (microVMs) for AI agents on Luxor Agent Cloud

22 lines (21 loc) • 615 B
import type { Output } from "./options.js"; import type { ExecResult } from "./result.js"; export declare class Stream { private abortController; private queue; private waiters; private draining; private closed; private finalResult; private finalError; private waitPromise; private resolveWait; private rejectWait; constructor(abortController: AbortController); next(): Promise<Output | null>; wait(): Promise<ExecResult>; cancel(reason?: unknown): void; push(output: Output): void; finish(result: ExecResult): void; fail(error: unknown): void; }