import * as React from 'react'; import { ConfigConsumerProps } from '../config-provider'; export interface OverlayProps { visible?: boolean; duration?: number | string; onClick?: (e: any) => void; prefixCls?: string; style?: React.CSSProperties; className?: string; } export interface OverlayContentProps extends OverlayProps { rootCls?: string; children?: React.ReactNode; } declare class Overlay extends React.Component { static defaultProps: { prefixCls: string; maskClosable: boolean; }; static getDerivedStateFromProps(nextProps: OverlayProps): null; ref: any; constructor(props: OverlayProps); componentDidMount(): void; componentWillUnmount(): void; renderOverlay: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Overlay;