import * as React from 'react'; import { DialogProps } from '../dialog'; import {IconType} from "../utils"; type ConfirmDialogTemplateType = React.ReactNode | ((options: ConfirmDialogOptions) => React.ReactNode); type ConfirmDialogAppendToType = 'self' | HTMLElement | undefined | null; interface ConfirmDialogBreakpoints { [key: string]: string; } interface ConfirmDialogOptions { accept(): void; reject(): void; acceptClassName: string; rejectClassName: string; acceptLabel: string; rejectLabel: string; element: React.ReactNode; props: ConfirmDialogProps; [key: string]: any; } export interface ConfirmDialogProps extends Omit { visible?: boolean; message?: ConfirmDialogTemplateType; rejectLabel?: string; acceptLabel?: string; icon?: IconType; rejectIcon?: IconType; acceptIcon?: IconType; rejectClassName?: string; acceptClassName?: string; appendTo?: ConfirmDialogAppendToType; className?: string; footer?: ConfirmDialogTemplateType; breakpoints?: ConfirmDialogBreakpoints; onHide?(result: string): void; accept?(): void; reject?(): void; } interface ConfirmDialogReturn { show(): void; hide(): void; } export declare class ConfirmDialog extends React.Component { } export declare function confirmDialog(props: ConfirmDialogProps): ConfirmDialogReturn;