import type { SagaState } from '../coordinator/state.js'; declare function runsDir(stateRoot: string): string; declare function sagaDir(stateRoot: string, sagaId: string): string; declare function statePath(stateRoot: string, sagaId: string): string; declare function eventsPath(stateRoot: string, sagaId: string): string; declare function artifactsDir(stateRoot: string, sagaId: string): string; declare function stageArtifactDir(stateRoot: string, sagaId: string): string; export { runsDir, sagaDir, statePath, eventsPath, artifactsDir, stageArtifactDir }; export declare class StateCorruptedError extends Error { readonly sagaId: string; constructor(sagaId: string, cause: unknown); } export declare function ensureSagaDir(stateRoot: string, sagaId: string): Promise; export declare function readState(stateRoot: string, sagaId: string): Promise; export declare function writeState(stateRoot: string, state: SagaState): Promise; //# sourceMappingURL=state-store.d.ts.map