import type { Result, Run, TestingWorkflow } from "../types/index.js";
export interface WorkflowGoalAction {
    type: "todo" | "note";
    title: string;
    description: string;
    todoTaskId?: string;
    skippedReason?: string;
}
export interface WorkflowGoalLoopResult {
    workflow: TestingWorkflow;
    status: "passed" | "failed";
    iterations: number;
    runs: Run[];
    actions: WorkflowGoalAction[];
    reasoning: string;
}
export interface WorkflowGoalLoopOptions {
    url: string;
    model?: string;
    parallel?: number;
    headed?: boolean;
    dryRun?: boolean;
    aiGenerate?: typeof generateWorkflowActionsWithAi;
}
export declare function runWorkflowGoalLoop(workflowId: string, options: WorkflowGoalLoopOptions): Promise<WorkflowGoalLoopResult>;
export declare function generateWorkflowActionsWithAi(input: {
    workflow: TestingWorkflow;
    run: Run;
    results: Result[];
    model?: string;
}): Promise<WorkflowGoalAction[]>;
//# sourceMappingURL=workflow-agent.d.ts.map