import * as React from 'react'; import { ConfigConsumerProps } from '../config-provider'; export interface PopupProps { visible?: boolean; duration?: number | string; overlay?: boolean; placement?: PopupPlacement; maskClosable?: boolean; showCloseIcon?: boolean; onClickOverlay?: (e: any) => void; onClick?: (e: any) => void; onClose?: (e: any) => void; prefixCls?: string; style?: React.CSSProperties; className?: string; } export declare type PopupPlacement = 'top' | 'left' | 'bottom' | 'right' | 'center'; export declare type PopupCloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; export interface PopupContentProps extends PopupProps { rootCls?: string; children?: React.ReactNode; renderCloseIcon?: () => React.ReactNode; } declare class Popup extends React.Component { static defaultProps: { prefixCls: string; placement: string; maskClosable: boolean; }; popupRef: any; constructor(props: PopupProps); close: (e: React.TouchEvent) => void; onClickOverlay: (e: React.TouchEvent) => void; renderOverlay: () => JSX.Element | undefined; renderPopup: ({ getPrefixCls }: ConfigConsumerProps) => JSX.Element; render(): JSX.Element; } export default Popup;