import { RefObject } from 'react'; import { UseRenderWidgetsOptions } from '../../types/widgets/UseRenderWidgetsOptions'; /** * React adapter for renderWidgets. Renders on mount and whenever `deps` change, * using `ref.current` as the cancelKey. With `observe: true` it mounts a * debounced MutationObserver (childList + subtree) that re-renders on article * HTML changes and cleans up on unmount. Absorbs the render/observe glue that * the widgets repeat in their Article loaders. * @param {RefObject} ref - Ref to the widget container. * @param {UseRenderWidgetsOptions} options - renderWidgets options plus observe/deps. * @returns {void} */ export declare const useRenderWidgets: (ref: RefObject, options?: UseRenderWidgetsOptions) => void; //# sourceMappingURL=useRenderWidgets.d.ts.map