import { ExecutionLimits, SandboxExecutionResult } from './types.js'; /** * Memory used by a QuickJS runtime, in megabytes. * Prefers a numeric reading. The text dump is the fallback, and a format * change or a missing API reports 0 rather than failing the script. */ export declare function memoryUsedMb(runtime: { computeMemoryUsage?: () => unknown; dumpMemoryUsage?: () => string; }): number; /** * Evaluates JavaScript guest code inside an isolated QuickJS WebAssembly sandbox. * Supports async callTool bridging across IPC/host dispatcher, microtask pumping, * console capturing, circuit breaker enforcement, and 2-tier timeout protection. */ export declare function evaluateGuestScript(code: string, limits: ExecutionLimits, ipcToolDispatcher: (name: string, args: Record) => Promise): Promise; //# sourceMappingURL=guest-evaluator.d.ts.map