import { IconType } from '../icon/index.js'; export type ToastType = "info" | "success" | "error" | "warning" | "confirm"; export interface ToastProps { title?: React.ReactNode; okText?: string; cancelText?: string; content?: React.ReactNode; color?: string; icon?: IconType[]; onOk?: () => void | PromiseLike; onCancel?: () => void; onDestroy?: () => void; type?: ToastType; /** * 受控开关。命令式 API(modal.show 返回的实例)要靠它把 show/hide 的时机拿回来, * 所以 Toast 不再自己决定开合;默认打开,跟 vue 那边 instance.show() 的行为一致。 */ open?: boolean; onOpenChange?: (open: boolean) => void; } export default function Toast({ title, okText, cancelText, content, color, icon, onOk, onCancel, onDestroy, type, open, onOpenChange, }: ToastProps): import("react").JSX.Element;