import type { Observable, Observer } from 'rxjs'; /** * React hook that subscribes to an observable using `useLayoutEffect`, * ensuring the subscription is active before the browser paints. * * Useful when the observable drives ref updates or other commit-phase side effects. * * @template T - The value type emitted by the observable. * @param observable - The observable to subscribe to. * @param observer - An observer or `next` callback. * @param teardown - Optional teardown function added to the subscription. */ export declare const useObservableLayoutSubscription: (observable: Observable, observer?: Partial> | ((value: T) => void), teardown?: () => void) => void;