/** * JS/TS REPL Tool (GAP-TOOLS-007). * * Provides sandboxed JavaScript expression evaluation using Node's * built-in `vm` module. Designed for safe, isolated evaluation of * expressions within agent workflows. */ import { type Context } from 'node:vm'; export interface ReplResult { output: string; error?: string; durationMs: number; } /** * Evaluate a JavaScript expression in a sandboxed context. * Returns the result as a string, or captures the error. */ export declare function evaluateExpression(code: string, timeoutMs?: number, sandbox?: Context): ReplResult; /** * Format a REPL result for display. */ export declare function formatReplResult(result: ReplResult): string; /** * Create a reusable sandbox context with optional global bindings. * The sandbox provides basic JavaScript builtins but no Node.js APIs * (no require, no process, no filesystem access). */ export declare function createReplSandbox(globals?: Record): Context; //# sourceMappingURL=jsRepl.d.ts.map