export type MemoryPrefs = { education?: string; major?: string; political?: string; province?: string; grassroots_years?: number; score?: number; exam_category?: string; }; export type WatchedPosition = { position_id: string; year: number; label: string; added_at: string; note?: string; }; export type MemoryEvent = { at: string; type: string; detail: string; }; export type MemoryState = { prefs: MemoryPrefs; watched: WatchedPosition[]; events: MemoryEvent[]; }; export declare function memoryPath(): string; export declare function loadMemory(): MemoryState; export declare function setPrefs(updates: Record): MemoryState; export declare function addWatched(positionId: string, year: number, label: string, note?: string): MemoryState; export declare function logEvent(type: string, detail: string): MemoryState; export declare function clearMemory(): MemoryState;