import { OutletHandle } from '@novu/js/ui'; import { ReactNode } from 'react'; type OutletRenderer = (el: HTMLDivElement, ...args: TArgs) => OutletHandle; /** * Turns a React render prop into the renderer the engine expects. * * The engine only ever sees one function per outlet kind, so a new inline arrow on the host side never remounts * anything: the latest render prop is kept in a ref and called during the outlet's own render. A change of the * render prop invalidates the outlet store after commit, so outlets that rendered earlier in the same pass catch up. */ declare function useOutletRenderer(renderProp: ((...args: TArgs) => ReactNode) | undefined): OutletRenderer | undefined; export { useOutletRenderer }; export type { OutletRenderer };