UNPKG

@fluster.io/dev

Version:

5 lines (4 loc) 315 B
import { ForwardedRef, RefObject } from 'react'; export declare const useObserveChildren: <T extends HTMLElement>(cb: (mutations: MutationRecord[]) => void, opts?: MutationObserverInit & { once?: boolean; }, providedRef?: RefObject<T> | ForwardedRef<T>) => ((instance: T | null) => void) | RefObject<T | null>;