/** * Deterministic parser for workflow scripts. * * The workflow entry statement must be a literal `export const meta = { ... }`. * Runtime execution intentionally happens elsewhere; this parser only accepts a * JSON-like JavaScript object literal for metadata so metadata is side-effect free. * * Concepts adapted from michaelliv/pi-dynamic-workflows (MIT): literal metadata * gate before workflow execution and deterministic metadata parsing constraints. */ import type { ParsedWorkflow } from "./workflow-types.js"; declare class WorkflowParseError extends Error { readonly index?: number; constructor(message: string, index?: number); } export { WorkflowParseError }; export declare function parseWorkflowScript(source: string): ParsedWorkflow; export declare function validateWorkflowBody(body: string): void;