import React from 'react'; import { PopProps } from '../pop/index'; import { ButtonProps } from '../button/index'; export declare type PopDialogType = 'info' | 'success' | 'warning' | 'error'; export interface PopDialogProps extends PopProps { type?: PopDialogType; okType?: ButtonProps['type']; okText?: string; cancelText?: string; onOk?: React.EventHandler; onCancel?: React.EventHandler; } export interface PopDialogState { visible?: boolean; } export declare class PopDialog extends React.Component { static defaultProps: PopDialogProps; state: PopDialogState; handleVisibleChange: (visible: boolean) => void; handleOk: (ev: React.SyntheticEvent) => void; handleCancel: (ev: React.SyntheticEvent) => void; renderContent(): JSX.Element; render(): JSX.Element; } export default PopDialog;