import type { ThreadRecord, ThreadContract } from '../../core/types/thread-types.js'; /** Compose the structured child prompt from a delegation contract (analogous to * buildDispatchPrompt for tasks). With neither contract nor mission chain, the * message passes through unchanged (legacy thread_start behavior). */ export declare function buildContractPrompt(args: { message: string; contract?: ThreadContract | null; missionChain?: string[]; }): string; /** Ancestor goal chain for a child spawned under `parent`, root-first: * the parent's own chain plus the parent's goal (contract goal, else its truncated * userMessage). Injected into every contract so leaves can see the whole "why". */ export declare function buildMissionChain(parent: ThreadRecord | null): string[]; /** Per-thread contract budget breaker: true when the thread has spent its contract budget. * Used by checkTemplateLimits (template threads) and the runner's wait re-entry branch * (ad-hoc parents, which bypass transition evaluation). */ export declare function checkContractBudget(thread: ThreadRecord): boolean;