import { DependencyList } from 'react'; import { Observable } from 'rxjs'; /** * Create a memoized callback that uses an observable and unsubscribe automatically if component unmount * @returns a memoized version of the callback that only changes if one of the inputs has changed */ export declare function useCallbackObservable(observableGenerator: (...args: any[]) => Observable, deps: DependencyList): [(...args: any[]) => void, T | null, any, boolean, undefined];