import type { Note, NoteIndexEntry, NoteProjectSummary, NotesListQuery } from '../../notes/types.js'; export declare function upsertNoteRecord(note: Note): void; /** Refresh derived note index metadata and FTS entries after discussion transcript/summary changes without bumping note revision. */ export declare function syncNoteDiscussionIndex(noteId: string): void; export declare function getNoteRecord(noteId: string): Note | null; export declare function deleteNoteRecord(noteId: string): boolean; export declare function listNoteRecords(query?: NotesListQuery): { items: NoteIndexEntry[]; total: number; limit: number; offset: number; hasMore: boolean; }; export declare function listNoteProjectSummaries(): NoteProjectSummary[]; export interface NoteTagSummary { tag: string; noteCount: number; updatedAt: number; } export declare function listNoteTagSummaries(): NoteTagSummary[]; export interface NoteBacklinkSummary { id: string; title?: string; kind: Note['kind']; updatedAt: number; snippet?: string; } export declare function listNoteBacklinks(noteId: string): NoteBacklinkSummary[];