import type { WorkflowInstance, WorkflowDefinition, WorkflowStepDefinition } from "./types"; /** * Resolve template variables in a string. * Supports: {{instance.goal}}, {{instance.slug}}, {{artifacts.X}}, {{step.name}}, {{step.id}} * Unknown variables are left as-is. */ export declare function resolveTemplate(template: string, instance: WorkflowInstance, definition: WorkflowDefinition): string; /** * Build the workflow context header showing goal, step history, and accumulated artifacts. */ export declare function buildContextHeader(instance: WorkflowInstance, definition: WorkflowDefinition): string; /** * Build the full context-threaded prompt for a step. * Combines: (1) workflow context header, (2) delegation instruction if step * targets a non-loom agent, (3) resolved step prompt. */ export declare function composeStepPrompt(stepDef: WorkflowStepDefinition, instance: WorkflowInstance, definition: WorkflowDefinition): string;