/** * Halt-view extraction from RuntimeError. * * `@rcrsr/rill@0.19.0` `execute()` rethrows escaping halts as `RuntimeError` * with the originating invalid `RillValue` attached as a non-enumerable * `haltValue` property. The full status sidecar (atom, message, provider, * raw payload, trace chain) lives on that value. */ import { type RillValue, type RuntimeError, type TraceFrame } from '@rcrsr/rill'; export interface HaltView { readonly atom: string | null; readonly message: string; readonly provider: string | null; readonly trace: ReadonlyArray; readonly raw: Readonly>; } /** * Build a halt view from a RuntimeError when the runtime has attached an * invalid value via `haltValue`. Returns null for plain runtime errors. */ export declare function viewFromRuntimeError(err: RuntimeError): HaltView | null; /** * Build a halt view from an invalid `RillValue` returned by a script * (e.g. a `guard`-recovered result). Returns null for valid values. */ export declare function viewFromInvalidValue(value: RillValue): HaltView | null;