
import { PortalProps } from "./types.js";
import * as react_jsx_runtime0 from "react/jsx-runtime";

//#region src/components/portal/Portal.d.ts
/**
 * This component renders its children outside the current DOM hierarchy.
 *
 * React [doesn't support](https://github.com/facebook/react/issues/13097) portal API in SSR, so, if you want to
 * render a Portal in SSR, use prop `disabled`.
 *
 * By default, Portal's children render under the `<Root />` component.
 *
 * ***Important***: Since React doesn't support portals on SSR, `<Portal />` children renders in the next tick.
 * If you need to make some computations, use the `onMount` callback
 *
 * @see https://reactjs.org/docs/portals.html
 *
 * @example ```jsx
 *  <div>
 *    Portal will be rendered outside me!
 *
 *    <Portal>
 *      <div>some content will be shown outside the parent container</div>
 *    </Portal>
 *  </div>
 * ```
 */
declare function Portal(props: PortalProps): react_jsx_runtime0.JSX.Element;
//#endregion
export { Portal };
//# sourceMappingURL=Portal.d.ts.map