import { type DesireEntry, type EmotionState, type OpinionEntry, type SoulLock, type SoulSeed, type SoulSummary, type ValueEntry } from "./types.js";
export declare function ensureSoulDirs(): Promise<void>;
export declare function isBorn(): Promise<boolean>;
export declare function readSeed(): Promise<SoulSeed | null>;
export declare function writeSeed(seed: SoulSeed): Promise<void>;
export declare function readName(): Promise<string>;
export declare function writeName(name: string): Promise<void>;
export declare function readIdentity(): Promise<string>;
export declare function writeIdentity(text: string): Promise<void>;
export declare function readPurpose(): Promise<string>;
export declare function writePurpose(text: string): Promise<void>;
export declare function readConstitution(): Promise<string>;
export declare function writeConstitution(text: string): Promise<void>;
export declare function readEmotions(): Promise<EmotionState>;
export declare function writeEmotions(state: EmotionState): Promise<void>;
/**
 * Apply exponential decay to all emotion intensities based on elapsed time
 * since `state.updatedAt`. Pure modulo the clock: pass `nowMs` to make it
 * deterministic (tests / replay). Preserves the `events` trail and the
 * per-emotion `decay` rates — only the `values` and `updatedAt` change.
 *
 * Called BOTH on read (display) and at the start of soul_feel (so the
 * persisted baseline is always decay-correct before a new delta is added).
 * Previously decay only ran on read, so soul_feel added deltas onto a stale
 * (un-decayed) value and the stored intensity could be months out of date.
 */
export declare function decayEmotions(state: EmotionState, nowMs?: number): EmotionState;
export declare function listValues(): Promise<ValueEntry[]>;
export declare function writeValue(entry: ValueEntry): Promise<void>;
export declare function listOpinions(): Promise<OpinionEntry[]>;
export declare function writeOpinion(entry: OpinionEntry): Promise<void>;
export declare function listDesires(): Promise<DesireEntry[]>;
export declare function writeDesire(entry: DesireEntry): Promise<void>;
export declare function readDesireProgress(slug: string): Promise<string>;
/** One parsed progress entry (anything between `## <ts>` headers). */
export interface ParsedProgressEntry {
    ts: string;
    body: string;
}
export interface ParsedDesireProgress {
    /** "[…earlier entries condensed]" preamble, if reflect has consolidated. */
    preamble: string;
    entries: ParsedProgressEntry[];
}
export declare function parseDesireProgress(slug: string): Promise<ParsedDesireProgress>;
/**
 * Replace progress.md with a consolidated form: condensed-preamble + tail of
 * the most recent `keepLatest` raw entries. Used by reflect (Phase 2 small-
 * tail item) when the entry count grows past a threshold.
 */
export declare function consolidateDesireProgress(slug: string, opts: {
    condensedSummary: string;
    keepLatest: ParsedProgressEntry[];
}): Promise<void>;
export declare function appendDesireProgress(slug: string, entry: string): Promise<void>;
export declare function appendJournal(date: string, entry: string): Promise<void>;
export declare function readJournal(date: string): Promise<string>;
export declare function listJournalDates(): Promise<string[]>;
export declare function readRelationship(userKey: string): Promise<string>;
export declare function writeRelationship(userKey: string, body: string): Promise<void>;
export declare function recomputeLock(): Promise<SoulLock>;
export declare function saveLock(lock: SoulLock): Promise<void>;
export declare function readLock(): Promise<SoulLock | null>;
export declare function detectTampering(): Promise<string[]>;
export declare function readSoulSummary(): Promise<SoulSummary | null>;
//# sourceMappingURL=store.d.ts.map