/** * Script Execution * * Public API for executing Rill scripts. * Provides both full execution and step-by-step execution. */ import type { ScriptNode } from '../../types.js'; declare module '../../error-classes.js' { interface RuntimeError { readonly haltValue?: RillValue; readonly haltCatchable?: boolean; readonly haltSignal?: RuntimeHaltSignal; } } import type { ExecutionResult, ExecutionStepper, RuntimeContext } from './types/runtime.js'; import type { RillValue } from './types/structures.js'; import { RuntimeHaltSignal } from './types/halt.js'; /** * Execute a parsed Rill script. * * @param script The parsed AST (from parse()) * @param context The runtime context (from createRuntimeContext()) * @returns The final value and all captured variables */ export declare function execute(script: ScriptNode, context: RuntimeContext): Promise; /** * Create a stepper for controlled step-by-step execution. * Allows the caller to control the execution loop and inspect state between steps. * * @param script The parsed AST (from parse()) * @param context The runtime context (from createRuntimeContext()) * @returns A stepper for step-by-step execution */ export declare function createStepper(script: ScriptNode, context: RuntimeContext): ExecutionStepper;