declare global { interface BaseNote { id: string title: string content: string created: number modified: number isRoot?: boolean } interface Note extends BaseNote { wordCount: number } interface ViewMode { name: string icon: string } interface AutocompleteEvent { position?: any autocompleteText?: string domElement?: HTMLElement show: boolean } interface NoteRelations { id: string to: string[] from: string[] } interface NotesRelations { [noteId: string]: { to: string[] from: string[] } } } export {}