import PropTypes from "prop-types"; import * as React from "react"; export interface PortalProps { /** The content of the component. */ children?: React.ReactNode; /** * An HTML element or function that returns one. * The `container` will have the portal children appended to it. * * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ container?: null | HTMLElement | (() => HTMLElement); /** * If `false`, the teleportation will be deactivated. * @default true */ activate?: boolean; } declare const Portal: { (props: PortalProps, ref: React.Ref): JSX.Element | null; propTypes: { children: PropTypes.Requireable; container: PropTypes.Requireable; activate: PropTypes.Requireable; }; }; export default Portal;