export interface ConfirmOptions { /** 标题,默认 "提示" */ title?: string; /** 内容描述 */ message: string; /** 确认按钮文案,默认 "确认" */ confirmText?: string; /** 取消按钮文案,默认 "取消" */ cancelText?: string; /** 确认按钮样式变体 */ variant?: 'default' | 'destructive'; } /** * 函数式确认弹窗,作为 window.confirm 的直接平替。 * * @example * // 简单用法(兼容 window.confirm 传参) * const ok = await showConfirm('确定删除吗?'); * * // 完整用法 * const ok = await showConfirm({ * title: '确认删除', * message: '删除后不可恢复', * confirmText: '删除', * variant: 'destructive', * }); */ export declare function showConfirm(options: string | ConfirmOptions): Promise;