/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { AbstractTooltipProps } from '../../tooltip'; import { LegacyButtonType, ButtonProps } from '../../button/component/button'; import { RenderFunction } from '../../_util/getRenderPropValue'; export interface PopconfirmProps extends AbstractTooltipProps { title: React.ReactNode | RenderFunction; disabled?: boolean; onConfirm?: (e?: React.MouseEvent) => void; onCancel?: (e?: React.MouseEvent) => void; okText?: React.ReactNode; okType?: LegacyButtonType; cancelText?: React.ReactNode; okButtonProps?: ButtonProps; cancelButtonProps?: ButtonProps; icon?: React.ReactNode; onVisibleChange?: (visible: boolean, e?: React.MouseEvent | React.KeyboardEvent) => void; } export interface PopconfirmState { visible?: boolean; } export interface PopconfirmLocale { okText: string; cancelText: string; } declare const Popconfirm: React.ForwardRefExoticComponent>; export default Popconfirm;