import { Bucket } from "miniplex"; /** * Subscribes to changes in the specified bucket, and re-renders the component * whenever entities are added to or removed from it. * * @param bucket The bucket to watch for changes * @returns The bucket passed in, for convenience */ export declare function useEntities>(bucket: T): T; export declare function useOnEntityAdded(bucket: Bucket, callback: (entity: E) => void): void; export declare function useOnEntityRemoved(bucket: Bucket, callback: (entity: E) => void): void;