import type { ExecutionBudget } from '../types.js'; import type { QuickJSContext } from 'quickjs-emscripten-core'; /** * Time-bounds a single sandbox run. Two deadlines — a drawn-down compute budget (`timeoutMs`, * spent only while the guest runs bytecode and frozen across host-call latency) and a fixed * whole-run ceiling (`maxLifetimeMs`) — are each enforced two ways, because the guest is only * ever in one of two states and each enforcer reaches only one: * - while the guest RUNS bytecode → the interrupt handler * - while the guest is PARKED on an `await` → a wall-clock `setTimeout` */ export declare function createExecutionBudget(context: QuickJSContext, timeoutMs: number, maxLifetimeMs: number): ExecutionBudget; //# sourceMappingURL=execution-budget.d.ts.map