import type { Engine } from './engine/engine.js';
import type { CoreMessage } from 'ai';
import { type SystemPromptSnapshot } from './prompt/build-system-prompt.js';
import { YagrRunEngine } from './runtime/run-engine.js';
import type { DeployedWorkflow, GeneratedWorkflow, YagrRunOptions, YagrRunResult, WorkflowSpec, WorkflowValidationResult } from './types.js';
type YagrRunEngineLike = Pick<YagrRunEngine, 'execute'>;
interface YagrAgentDependencies {
    buildPromptSnapshot?: (engine: Engine) => SystemPromptSnapshot;
    createRunner?: (engine: Engine, history: readonly CoreMessage[], systemPrompt: string) => YagrRunEngineLike;
}
export declare class YagrAgent {
    private readonly engine;
    private readonly dependencies;
    private readonly history;
    private promptSnapshot;
    constructor(engine: Engine, dependencies?: YagrAgentDependencies);
    plan(spec: WorkflowSpec): Promise<GeneratedWorkflow>;
    validate(generatedWorkflow: GeneratedWorkflow): Promise<WorkflowValidationResult>;
    create(spec: WorkflowSpec): Promise<{
        workflow: GeneratedWorkflow;
        validation: WorkflowValidationResult;
        deployed?: DeployedWorkflow;
    }>;
    list(): Promise<DeployedWorkflow[]>;
    activate(id: string): Promise<void>;
    deactivate(id: string): Promise<void>;
    delete(id: string): Promise<void>;
    run(prompt: string, options?: YagrRunOptions): Promise<YagrRunResult>;
    clearConversation(): void;
    private createPromptSnapshot;
    private createRunner;
    private syncPromptSnapshotBeforeRun;
}
export {};
//# sourceMappingURL=agent.d.ts.map