/** * Watches for changes to the DOM tree using `MutationObserver`. * * @remarks * This hook creates a `MutationObserver` and observes the target node. * It automatically updates the observer when the configuration changes. * * @param target - The DOM node to observe. * @param callback - The callback to execute when mutations occur. * @param config - The mutation observer configuration options. * * @example * ```tsx * useMutationObserver( * ref.current, * (mutations) => { * console.log("DOM changed!", mutations); * }, * { childList: true, subtree: true } * ); * ``` */ export declare function useMutationObserver(target: Node | null, callback: MutationCallback, config?: MutationObserverInit): void;