import { BehaviorSubject } from 'rxjs'; import { Dispatch, SetStateAction } from 'react'; /** * Similar to `useState` but returns an observable of the current value rather than the value itself. * * Both values of the returned tuple are identity stable. * * @param initialValue initial value for the returned `BehaviorSubject` or a factory that generates that value * @typeParam S type of the state value * @returns a tuple of `BehaviorSubject` and a callback used to change the - or better to say to emit a new - state * @category Hook */ export declare function useObservableState(initialValue: S | (() => S)): [BehaviorSubject, Dispatch>]; //# sourceMappingURL=use-observable-state.d.ts.map