import type { MutableRefObject } from "react"; declare type UseMutationObserver = { active?: boolean; onMutate: MutationCallback; options?: MutationObserverInit; } & ({ ref: MutableRefObject; } | { element?: HTMLElement | null; }); /** * Accepts a ref and calls the `onMutate` callback when mutations are observed. */ export declare const useMutationObserver: ({ active, onMutate, options, ...rest }: UseMutationObserver) => void; export {};