import { Observable } from 'rxjs'; import { RefObject } from 'react'; declare const COMBO_REF_FLAG: unique symbol; declare const RX_REF: unique symbol; export interface ComboRef extends CallableFunction { (value: T): () => void; get current(): T; set current(value: T); [COMBO_REF_FLAG]: true; [RX_REF]: Observable; } /** * @summary Provides memoized observable and ComboRef object (RefObject and RefCallback in one). * Replays the latest ref value for new subscribers. * Completes when component will unmount. */ export declare function useRxRef(initialValue?: T): [Observable, ComboRef]; export declare function isComboRef(ref: RefObject | unknown): ref is ComboRef; export declare function getRxRefFromComboRef(ref: ComboRef): Observable; export {};