import type { Database, MacroBlock, Datasource as DataSource, Graph } from './types'; import { type Writable } from 'svelte/store'; export declare const userStore: Writable; export declare class NodeStorage { #private; static pullDataSourcesInterval: number; static mainStorage: Database; static sources: DataSource[]; static get instance(): NodeStorage; numGraphs: number; graphs: MacroBlock[]; static get macroblocks(): MacroBlock[]; data: { tags: string[]; favorites: MacroBlock[]; paths: string[][]; userBlocks: MacroBlock[]; }; updateData: import("lodash-es").DebouncedFunc<() => void>; static get favorites(): MacroBlock[]; static get tags(): string[]; static get userBlocks(): MacroBlock[]; static get paths(): string[][]; static get data(): { tags: string[]; favorites: MacroBlock[]; paths: string[][]; userBlocks: MacroBlock[]; }; private constructor(); static updateTimeout: NodeJS.Timeout | undefined; static updateLoop(): Promise; static get numGraphs(): number; static get graphs(): MacroBlock[]; static getGraphs(): Promise; static getGraph(id: string): Promise; static saveGraph(graph: Graph): Promise; static clearGraphs(): Promise; static deleteMacro(id: string): Promise; static pullSources(): Promise; }