import { Entry, EntryKey } from "./entries"; declare type CollectionKey = string; export declare type EntryCollection = Entry[]; export declare type Collection = { get: (key: CollectionKey) => EntryCollection | null; set: (key: CollectionKey, refs: EntryKey[]) => void; del: (key: CollectionKey) => void; }; declare type CollectionIndex = Record; export declare function useCollection(getEntry: (id: EntryKey) => Entry): { get: (key: CollectionKey) => Entry[] | null; set: (key: CollectionKey, refs: EntryKey[]) => void; del: (id: EntryKey) => void; index: CollectionIndex; }; export {};