/** * Subscriber is a function that takes a single argument, which is another function `listener` that returns `void`. The Subscriber function itself returns another function that can be used to unsubscribe the `listener`. */ type Subscriber = (listener: () => void) => () => void; type SnapshotGetter = () => T; /** * Alternate for `useSyncExternalStore` which runs into infinite loops when hooks are used in `getSnapshot` * https://github.com/facebook/react/issues/24529 */ export declare function useSyncMemoizedStore(subscribe: Subscriber, getSnapshot: SnapshotGetter): T; export {};