/** * Full implementation of useSyncExternalStoreWithSelector. * Required for zustand compatibility in React 19 environments. * * This replaces the "use-sync-external-store/with-selector" package * which ships as CJS and breaks ESM-only browser builds. * * @module @burdenoff/fe-libs/shared/shims/use-sync-external-store-with-selector */ type Selector = (snapshot: TSnapshot) => TSelection; type IsEqual = (a: TSelection, b: TSelection) => boolean; export declare function useSyncExternalStoreWithSelector(subscribe: (onStoreChange: () => void) => () => void, getSnapshot: () => TSnapshot, getServerSnapshot: (() => TSnapshot) | undefined, selector: Selector, isEqual?: IsEqual): TSelection; declare const _default: { useSyncExternalStoreWithSelector: typeof useSyncExternalStoreWithSelector; }; export default _default; //# sourceMappingURL=use-sync-external-store-with-selector.d.ts.map