import { type FrontMcpLogger } from '../../common/interfaces/logger.interface'; export interface EnclaveOptions { timeout?: number; maxIterations?: number; } /** * Bridge to @enclave-vm/core for executing dynamic job scripts in a sandbox. * Lazy-requires the enclave package (peerDependency). */ export declare class JobEnclaveBridge { private readonly logger; private readonly options; private enclaveCore; constructor(logger: FrontMcpLogger, options?: EnclaveOptions); /** * Lazy-load @enclave-vm/core. * * Uses a dynamic `import()` (not `require`) so the SDK's ESM build stays * runtime-agnostic and the bundler can treat the enclave sandbox as a lazy * optional dependency, matching the rest of the codebase. The full * `@enclave-vm/core` is Node-only (it pulls in the `worker_threads`/`node:vm` * adapters); the isolate-safe interpreter lives behind `@enclave-vm/core/worker`. */ private getEnclaveCore; /** * Execute a script in a sandboxed environment. */ execute(script: string, input: unknown, context: { callTool?: (name: string, args: unknown) => Promise; getTool?: (name: string) => unknown; mcpLog?: (level: string, message: string) => void; }): Promise; } //# sourceMappingURL=job-enclave.bridge.d.ts.map