import * as React from 'react'; import { type PrimitivePropsWithRef } from './primitive.cjs'; /** Props for {@link Portal}. */ export interface PortalProps extends PrimitivePropsWithRef<'div'> { /** * DOM node the children are rendered into via `ReactDOM.createPortal`, instead of their normal position in the tree. * @default document.body */ container?: Element | DocumentFragment | null | undefined; } /** Native modal descendants must portal inside the dialog's top-layer subtree. */ export declare const PortalContainerContext: React.Context; /** * Teleports children to a different DOM location via `ReactDOM.createPortal`, escaping clipping to sit above everything; SSR-safe, rendering nothing until mounted on the client. * * @example * ```tsx * *
…
*
* ``` */ export declare const Portal: { ({ ref: forwardedRef, ...props }: PortalProps): React.ReactNode; displayName: string; };