import { XHComponentCommonProps } from "../../../types"; export declare type ConfirmProps = { title?: string; header?: string; content: string; cancelText?: string; confirmText?: string; } & { /** 取消按钮的文字颜色,必须是 16 进制格式的颜色字符串 */ cancelColor?: string; /** 取消按钮的文字,最多 4 个字符 */ cancelText?: string; /** 接口调用结束的回调函数(调用成功、失败都会执行) */ complete?: (res: TaroGeneral.CallbackResult) => void; /** 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */ confirmColor?: string; /** 确认按钮的文字,最多 4 个字符 */ confirmText?: string; /** 提示的内容 */ content?: string; /** 接口调用失败的回调函数 */ fail?: (res: TaroGeneral.CallbackResult) => void; /** 接口调用成功的回调函数 */ success?: (result: ConfirmPropsResult) => void; /** 提示的标题 */ title?: string; } & XHComponentCommonProps; export declare type ConfirmPropsResult = { /** 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭) */ cancel: boolean; /** 为 true 时,表示用户点击了确定按钮 */ confirm: boolean; /** 调用结果 */ errMsg: string; }; declare const Comfirm: (props: ConfirmProps) => Promise; export default Comfirm;