/**
 * Template variable substitution — replaces {{varName}} patterns
 * in template systemPrompt strings with runtime values.
 */
export type TemplateVariableContext = {
    task: string;
    label: string;
    agentId: string;
    templateName: string;
    depth: number;
    maxDepth: number;
    availableTemplates: Array<{
        name: string;
        description: string;
    }>;
    /** Output directory path for orchestration tasks. */
    outputDir?: string;
    /** Previous stage output for pipeline mode. */
    previousOutput?: string;
};
/**
 * Replace `{{varName}}` tokens in `template` with values from `vars`.
 * Unrecognized variables (e.g. `{{unknown}}`) are left as-is.
 */
export declare function substituteTemplateVariables(template: string, vars: TemplateVariableContext): string;
