export interface JsWorkerRuntimeOptions { artifactsDir?: string; bridgeTimeoutMs?: number; cwd: string; hardenedCells?: boolean; localRoots?: Record; parallelPoolWidth: number; toolNames?: readonly string[]; tools?: readonly { readonly description?: string; readonly name: string }[]; } export interface JsWorkerRuntimeHooks { callTool: (toolName: string, args: unknown) => Promise; emit: (message: unknown) => void; } export declare class JsWorkerRuntime { constructor(options: JsWorkerRuntimeOptions); run( code: string, cellId: string, hooks: JsWorkerRuntimeHooks, strings?: Readonly> ): Promise; }