/** * BookmarkEntry - Metadata for a saved bookmark. */ export interface BookmarkEntry { /** Stable key identifying the block (e.g. 'msg_3_code_1'). */ key: string; /** Human-readable label (block type + short excerpt). */ label: string; /** Timestamp when bookmarked. */ timestamp: number; } /** * BookmarkManager - Tracks bookmarked blocks and saves block content to disk. * * Bookmarks are stored in memory for the session. Saved block content is * written to the configured bookmarks directory. */ export declare class BookmarkManager { private bookmarks; private saveDir; constructor(baseDir: string); /** * toggle - Toggle bookmark state for a block key. * Returns the new state: true = bookmarked, false = removed. */ toggle(key: string, label?: string): boolean; /** * isBookmarked - Check if a block key is bookmarked. */ isBookmarked(key: string): boolean; /** * list - Return all current bookmarks sorted by timestamp. */ list(): BookmarkEntry[]; /** * clear - Remove all bookmarks. */ clear(): void; /** * saveToFile - Write block content to a file in the bookmarks directory. * Returns the file path on success, or throws on failure. */ saveToFile(content: string, label: string): string; /** * listSavedFiles - List all previously saved block content files. */ listSavedFiles(): string[]; /** * loadSavedFile - Read a previously saved block content file by name. */ loadSavedFile(name: string): string | null; } //# sourceMappingURL=manager.d.ts.map