type RegisterItem = (key: Key, item: Item) => () => void; /** * Collects item registrations into one immutable snapshot per React commit. * Also returns the live registry for reads that must include the registrations of the current * commit before its snapshot is published. */ export declare function useItemRegistry(): ItemRegistry; export interface ItemRegistry { /** The snapshot published after the latest commit's registrations. */ items: ReadonlyMap; registerItem: RegisterItem; /** The registry itself, including registrations whose snapshot hasn't been published yet. */ liveItems: ReadonlyMap; } export {};