import { ReactNode } from "react"; import { XHComponentCommonProps } from "../../../types"; export declare type AlertProps = { title?: string | ReactNode; content?: string | ReactNode; confirmText?: string | ReactNode; } & { /** 取消按钮的文字,最多 4 个字符 */ cancelText?: string; /** 接口调用结束的回调函数(调用成功、失败都会执行) */ complete?: (res: TaroGeneral.CallbackResult) => void; /** 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */ confirmColor?: string; /** 确认按钮的文字,最多 4 个字符 */ confirmText?: string; /** 提示的内容 */ content?: string; /** 接口调用失败的回调函数 */ fail?: (res: TaroGeneral.CallbackResult) => void; /** 接口调用成功的回调函数 */ success?: () => void; /** 提示的标题 */ title?: string; } & XHComponentCommonProps; declare const Alert: (props: AlertProps) => Promise; export default Alert;