import { ReactNode } from 'react'; interface OverlayProps { onClose: () => void; center?: boolean; startFade?: boolean; disableClose?: boolean; hasBackdrop?: boolean; backdrop?: JSX.Element; hasAnimation?: boolean; useGlobalTheme?: boolean; children: ReactNode; } /** * A HOC that can be used with the useConnectedOverlay hook to create positioned connected overlays. * To enable fade out when the overlay is removed from the DOM, use the `onClose` prop to set the visible * state, and start fade out by setting the `startFade` prop to `true`. * * @example * export const Component: FC = () => { * const connectedElementRef = useRef(null); * const popoverRef = useRef(null); * const { isShowing, setIsShowing } = useConnectedOverlay(connectedElementRef, popoverRef); * const [ fadeOut, setFadeOut ] = useState(false); * ... * * return ( * ... * { isShowing && ( * setIsShowing(false)} startFade={fadeOut}> * ... * * ... * * )} * ) * } * * @since 2.1.0 */ export declare const Overlay: import("react").ForwardRefExoticComponent>; export {};