export default {
    get db() {
        const d = this._db();
        return d ? { ...d, ready: true } : { nodes: {}, edges: {}, ready: false };
    },
    // db: derived((state: any) => {
    //   const db = state?._db();
    //   return db
    //     ? { edges: db.nodes, nodes: db.db, ready: true }
    //     : {
    //         nodes: {},
    //         edges: {},
    //         ready: false,
    //       };
    // }),
    ready: false,
    _db: (() => { }),
    // _edges: (() => {}) as () => Dexie.Table,
};
// (state._db() || {}) as Dexie), //{} as Dexie,
// edges: derived((state: any) => (state._edges() || {}) as Dexie.Table), //{} as Dexie,
// };
//# sourceMappingURL=state.js.map