import { Entry, EntryKey } from "./entries"; import { Collection } from "./collection"; export declare type EntityStore = { entries: { set: (id: EntryKey, data: T) => void; get: (id: EntryKey) => Entry; del: (id: EntryKey) => void; }; collection: Collection; }; export declare function useEntity(): { entries: { get: (id: string) => Entry; set: (id: string, data: T) => void; del: (id: string) => void; index: { [x: string]: Entry; }; }; collection: { get: (key: string) => Entry[] | null; set: (key: string, refs: string[]) => void; del: (id: string) => void; index: { [x: string]: string[]; }; }; };