import { MutableRefObject } from 'react';
export type Options = {
    attributes?: boolean;
    childList?: boolean;
    subtree?: boolean;
};
/**
 * Custom hook to observe mutations on a target element.
 *
 * @param {HTMLElement | MutableRefObject<HTMLElement | null> | null} target - The element or ref to observe.
 * @param {MutationCallback | undefined} callback - The callback function to execute when mutations occur.
 * @param {object} options - Options to configure the MutationObserver.
 * @param {boolean} options.attributes - Set to true if attribute mutations should be observed.
 * @param {boolean} options.childList - Set to true if mutations to target's children should be observed.
 * @param {boolean} options.subtree - Set to true if mutations to target's descendants should be observed.
 */
declare const useMutationObserver: (target: HTMLElement | MutableRefObject<HTMLElement | null> | null, callback?: MutationCallback | undefined, options?: {
    attributes?: boolean;
    childList?: boolean;
    subtree?: boolean;
}) => void;
export default useMutationObserver;
