import { type EngineRunReadOptions, type EngineRunRemoveOptions, type EngineRunWriteOptions } from './protected-run-file.js'; import type { RunState } from './types.js'; export type StateDocument = Record; export declare function runStateFromDocument(doc: StateDocument): RunState | null; /** Write only run_id onto a yaml document (the rest of Run state lives in .comet/run-state.json). */ export declare function applyRunStateToDocument(doc: StateDocument, state: RunState | null): void; export declare const RUN_STATE_FILE = ".comet/run-state.json"; export declare function readRunState(changeDir: string, options?: EngineRunReadOptions): Promise; export declare function writeRunState(changeDir: string, state: RunState, options?: EngineRunWriteOptions): Promise; export declare function removeRunState(changeDir: string, options?: EngineRunRemoveOptions): Promise; //# sourceMappingURL=state.d.ts.map