export type ModuleStateRow = {
    moduleId: string;
    stateSchemaVersion: number;
    state: Record<string, unknown>;
    updatedAt: string;
};
type UnifiedStateDbOptions = {
    exportSnapshotRelativePath?: string;
};
export declare class UnifiedStateDb {
    private db;
    readonly dbPath: string;
    readonly exportSnapshotPath: string | null;
    private readonly workspaceRoot;
    constructor(workspacePath: string, databaseRelativePath: string, options?: UnifiedStateDbOptions);
    private ensureDb;
    getModuleState(moduleId: string): ModuleStateRow | null;
    setModuleState(moduleId: string, stateSchemaVersion: number, state: Record<string, unknown>): void;
    deleteModuleState(moduleId: string): void;
    listModuleStates(): ModuleStateRow[];
    private maybeExportSnapshot;
}
export {};
