import { default as React } from 'react'; import { PlacementsType } from '../const/types.js'; export interface PopconfirmProps { dark?: boolean; open?: boolean; /** @deprecated Use `open` instead. */ show?: boolean; title?: React.ReactNode; width?: number | string; okText?: string; cancelText?: string; placement?: PlacementsType; /** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */ destroyOnClose?: boolean; /** 只渲染浮层本身,不包含触发元素、定位与动画,与 kui-vue 一致 */ panelOnly?: boolean; onCancel?: () => void; onOk?: () => void; onOpenChange?: (open: boolean) => void; /** @deprecated Use `onOpenChange` instead. */ onShowChange?: (show: boolean) => void; children?: React.ReactNode; } export type PopconfirmPanelProps = Omit; /** 与 kui-vue 一致:`PopconfirmPanel` 是 `panelOnly` 模式的 `Popconfirm` */ export declare function PopconfirmPanel(props: PopconfirmPanelProps): React.JSX.Element; declare const Popconfirm: React.FC; export default Popconfirm;