import { Observable, PartialObserver } from 'rxjs'; import { DependencyList } from 'react'; /** * A simple helper that subscribes to the observable with the provided observer, * optionally resubscribes whenever any of the `deps` changes, and finally unsubscribes * when the component unmounts. * * @param observable source observable to subscribe to * @param observer observer to subscribe with * @param deps dependencies of the observer * @typeParam T type of the emission of the observable we are subscribing to * @category Hook */ export declare function useSubscription(observable: Observable | null | undefined, observer: PartialObserver | null | undefined, deps: DependencyList): void; //# sourceMappingURL=use-subscription.d.ts.map