import "../../../agent-spawn/dist/register-factories.js";
import type { SuperintendentDoc } from "../document/parse.js";
import { type TemplateContext } from "./templates.js";
export type BuilderResult = {
    summary: string;
    log: string;
    log_path: string;
};
export type RunBuilderOptions = {
    promptOverride?: string;
    defaultCwd: string;
    logPath?: string;
    signal?: AbortSignal;
};
export declare function runBuilder(doc: SuperintendentDoc, context: Partial<TemplateContext>, options: RunBuilderOptions): Promise<BuilderResult>;
