/** * state-store.ts — Port de persistencia del estado FORGE * * Define la interfaz StateStore y el adapter FileSystemStateStore * que reusa la lógica atómica de ProjectMemory (tmp → rename). * * El core depende de StateStore, nunca de fs directamente. * Permite sustituir el backend (FS → SQLite → remoto) sin tocar el engine. */ import type { ForgeEstado } from './project-memory.js'; export interface StateStore { read(): ForgeEstado; write(estado: ForgeEstado): void; exists(): boolean; clear(): void; } export declare class FileSystemStateStore implements StateStore { private readonly estadoPath; private readonly sddDir; private _cache; private _cacheMtime; private _cacheSize; constructor(sddDir: string); read(): ForgeEstado; private saveSnapshot; write(estado: ForgeEstado): void; exists(): boolean; clear(): void; } export declare class InMemoryStateStore implements StateStore { private estado; read(): ForgeEstado; write(estado: ForgeEstado): void; exists(): boolean; clear(): void; } export declare function createStateStore(cwd?: string): StateStore; //# sourceMappingURL=state-store.d.ts.map