import type { StateCreator, StoreMutatorIdentifier } from '../vanilla.mjs'; type SubscribeWithSelector = (initializer: StateCreator) => StateCreator; type Write = Omit & U; type WithSelectorSubscribe = S extends { getState: () => infer T; } ? Write> : never; declare module '../vanilla.mjs' { interface StoreMutators { ['zustand/subscribeWithSelector']: WithSelectorSubscribe; } } type StoreSubscribeWithSelector = { subscribe: { (listener: (selectedState: T, previousSelectedState: T) => void): () => void; (selector: (state: T) => U, listener: (selectedState: U, previousSelectedState: U) => void, options?: { equalityFn?: (a: U, b: U) => boolean; fireImmediately?: boolean; }): () => void; }; }; export declare const subscribeWithSelector: SubscribeWithSelector; export {};