import type { ExecHandle, ExitStatus } from "microsandbox"; export interface StoredExecEvent { index: number; event: Record; } export declare function createExecSession(handle: ExecHandle, options?: { stopSandboxOnExit?: string | null; }): Promise; export declare function pollExecSession(id: string, cursor?: number, limit?: number): { events: StoredExecEvent[]; nextCursor: number; done: boolean; exitStatus: ExitStatus | null; error: string | null; }; export declare function writeExecSessionStdin(id: string, data: string | Uint8Array, close?: boolean): Promise; export declare function signalExecSession(id: string, signal: number): Promise; export declare function killExecSession(id: string): Promise; export declare function closeExecSession(id: string): Promise;