import { PopconfirmType } from './popconfirm'; export interface PopconfirmOptions { title?: string; description?: string; type?: PopconfirmType; icon?: boolean; confirmText?: string; cancelText?: string; showCancel?: boolean; width?: string | number; beforeConfirm?: () => boolean | Promise; autoClose?: number; } export interface PopconfirmFn { (options: PopconfirmOptions | string): Promise; info: (options: PopconfirmOptions | string) => Promise; success: (options: PopconfirmOptions | string) => Promise; warning: (options: PopconfirmOptions | string) => Promise; danger: (options: PopconfirmOptions | string) => Promise; } export declare function usePopconfirm(): PopconfirmFn;