import { createVNode, VNode } from 'vue'; import { ButtonTheme } from '../../button/src/component.vue'; interface FConfirm { title?: string; subtitle?: string; content?: ((fn: typeof createVNode) => VNode) | string; confirmText?: string; confirmTheme?: ButtonTheme; cancelText?: string; cancelTheme?: ButtonTheme; showClose?: boolean; closeOnClickMask?: boolean; appendTo?: Element; onClosed?: () => void; } interface ConfirmResult { type: 'confirm' | 'cancel'; message: string; } declare const useConfirm: (options: FConfirm) => Promise; export default useConfirm;