import type { Config } from '../../config/schema.js';
import type { WorkflowRunSummary, WorkflowRunView } from '../domain/run.js';
import { WorkflowEventStore } from './event-store.js';
export declare class WorkflowRunStore {
    private readonly config;
    private readonly agentId;
    private readonly eventStore;
    constructor(config: Config, agentId: string, eventStore?: WorkflowEventStore);
    rebuildRunView(runId: string): Promise<WorkflowRunView | null>;
    readRunView(runId: string): Promise<WorkflowRunView | null>;
    listRunSummaries(limit?: number): Promise<WorkflowRunSummary[]>;
}
export declare function createWorkflowRunStore(config: Config, agentId: string): WorkflowRunStore;
