export type OpenCollectionOverlay = (onReturnToForeground?: () => void) => void; /** * Builds an opener that navigates to a collection (by id) as an overlay on top * of the current page, and invokes `onReturnToForeground` once the overlay * closes and the page returns to the foreground. * * Must be called from a component that outlives the inline cell editor (e.g. a * cell type's `EditWrapper`): opening the overlay typically commits/unmounts * the editor, so the layer-state subscription is owned here and disposed only * on this owner's unmount (and before re-opening). The editor passes the * refresh it wants to run on return as `onReturnToForeground` when it calls the * opener, since the editor — not this owner — holds the data to refresh. * * Returns `undefined` when the host can't navigate (no `collectionId`, * `navigateTo`, or page location). */ export declare function useOpenCollectionOverlay({ collectionId, }: { collectionId: string | undefined; }): OpenCollectionOverlay | undefined; //# sourceMappingURL=useOpenCollectionOverlay.d.ts.map