import React, { PropsWithChildren } from "react";
/**
 * A react portal implementation with current page fallback
 *
 * Usage
 * <PortalReceiver name="receive"/>
 *
 * <Portal to="receive">CHILD</Portal>
 *
 * This component renders its children inside a different part of the DOM tree
 * than where it was originally placed, allowing content to appear outside its
 * parent containers (useful for modals, tooltips, and dropdowns).
 **/
export default function Portal({ to, children, }: PropsWithChildren<{
    to: string;
}>): import("react/jsx-runtime").JSX.Element | null;
export declare const PortalReceiver: React.ForwardRefExoticComponent<{
    name: string;
    className?: string | undefined;
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
