import { ReactElement, ReactNode } from 'react'; export interface DSPortalProps { render: ReactElement<{ container?: HTMLElement; children?: ReactNode; }>; root: HTMLElement | null; children?: ReactNode; } /** * Renders a Base UI portal (the `render` prop) in the DSProvider root element. * Nothing is rendered until the root is mounted, so that popups open on the first render don't end up in document.body. */ export default function DSPortal({ render, root, children }: DSPortalProps): ReactElement<{ container?: HTMLElement; children?: ReactNode; }, string | import('react').JSXElementConstructor>;