import type { RuntimeContentItem } from "../code-mode/types.ts"; import type { TsWorkerInput, TsWorkerOutcome } from "./worker-protocol.ts"; interface WorkerCallbacks { output(items: RuntimeContentItem[]): void; notify(text: string): void; yield(): void; request(operation: "tool" | "import", id: number, name: string, input: unknown): Promise; } /** A process owns cwd, its heap, timers and its ordinary subprocess tree. The compiler stays in Pi. */ export declare class TsExecutionWorker { private readonly worker; private readonly requests; private stopPromise; private readonly closed; private nextRun; private active; private failure; private live; private liveReady; constructor(options: { cwd: string; heapMiB: number; }); execute(input: TsWorkerInput, callbacks: WorkerCallbacks): Promise; stop(): Promise; private stopTree; private request; } export {};