import type { FactoryState, IterationState } from '../types.js'; import type { StatePaths } from './paths.js'; export declare class StateError extends Error { readonly path: string; readonly cause?: unknown | undefined; constructor(message: string, path: string, cause?: unknown | undefined); } export declare function readFactoryState(paths: StatePaths): Promise; export declare function writeFactoryState(paths: StatePaths, state: FactoryState): Promise; export declare function readIterationState(paths: StatePaths, slug: string): Promise; export declare function writeIterationState(paths: StatePaths, state: IterationState): Promise; export declare function isKillSwitchSet(paths: StatePaths): Promise; export interface HistoryRecord { readonly slug: string; readonly source: string; readonly endedAt: string; readonly outcome: 'shipped' | 'partial-shipped' | 'failed'; readonly haltReason?: string; readonly durationMs: number; readonly repoCount: number; } export declare function appendHistory(paths: StatePaths, record: HistoryRecord): Promise; export declare function readHistory(paths: StatePaths): Promise; //# sourceMappingURL=store.d.ts.map