import type { AgentRun, ListRunsOptions, StartRunInput, UpdateProgressInput } from "./types.js"; export declare const DEFAULT_PROGRESS_RUN_STALE_MS: number; export declare function insertRun(input: StartRunInput): Promise; export declare function getRun(id: string, owner: string): Promise; export declare function updateRun(id: string, owner: string, input: UpdateProgressInput): Promise; export declare function cancelStaleRunsForOwner(owner: string, staleMs?: number): Promise; /** * Optional hook run (throttled) before each owner's run list is read. Lets a * producer of progress rows reconcile its own backing state first — e.g. Agent * Teams re-fires dropped sub-agent dispatches and marks dead runs failed so the * tray shows precise status instead of waiting on the generic stale sweep. * Registered by the agent-chat plugin to avoid a layering cycle (this generic * store must not import feature modules). */ export interface ProgressPreListContext { event?: unknown; } export type ProgressPreListHook = (owner: string, context: ProgressPreListContext) => Promise | void; export declare function setProgressPreListHook(hook: ProgressPreListHook | undefined): void; export declare function listRuns(owner: string, options?: ListRunsOptions): Promise; export declare function deleteRun(id: string, owner: string): Promise; //# sourceMappingURL=store.d.ts.map