import Dexie, { type EntityTable } from 'dexie'; import type { Database, Graph, MacroBlock } from './types'; /** Database instance to work with IndexedDB. */ export declare const db: Dexie & { graphs: EntityTable; }; export declare class IndexedDBSource implements Database { deleteMacro(id: string): Promise; clearGraphs(): Promise; clearMacroBlocks(): Promise; getGraphs(): Promise; getMacroBlocks(): Promise; getMacroBlock(id: string): Promise; getGraph(id: string): Promise; saveMacroBlock(graph: MacroBlock): Promise; saveGraph(graph: Graph): Promise; saveMacroBlocks(graphs: MacroBlock[]): Promise; saveGraphs(graphs: Graph[]): Promise; numGraphs: import("dexie").Observable; get numMacroBlocks(): import("dexie").Observable; graphs: import("dexie").Observable; get macroblocks(): import("dexie").Observable; }