import type { AutomationProductEventRun, AutomationRun, AutomationRunEvent } from '../domain/types.js'; export declare function appendAutomationRunEvent(event: AutomationRunEvent): void; export declare function saveAutomationRun(run: AutomationRun): void; export declare function touchAutomationRunLease(runId: string, leaseOwner: string, heartbeatAtMs: number, leaseExpiresAtMs: number): void; export declare function listAutomationRunEvents(runId: string): AutomationRunEvent[]; export declare function getAutomationRun(runId: string): AutomationRun | null; export declare function listAutomationRuns(options?: { automationId?: string; projectId?: string; limit?: number; }): AutomationRun[]; export declare function listAutomationRunsForProductEvent(options: { eventType: string; source?: string; payloadKey?: string; payloadValue?: string; limit?: number; }): AutomationProductEventRun[]; export declare function deleteAutomationRunsForAutomation(automationId: string): void; export declare function markAutomationRunRead(runId: string, readAtMs?: number): boolean; export declare function markAllAutomationRunsRead(options?: { projectId?: string; readAtMs?: number; }): number;