import { ComponentPublicInstance, Ref } from 'vue'; type ToastTarget = string | ComponentPublicInstance | HTMLElement | null | undefined; type MaybeRef = T | Ref; export declare function useToast(target?: MaybeRef): { show: (params: string | Partial<{ readonly position: import('./types').ToastPositionT; readonly defaultVisible: boolean; readonly long: boolean; } & { readonly duration?: number | undefined; readonly message?: string | undefined; readonly visible?: boolean | undefined; readonly beforeClose?: (() => Promise | boolean) | undefined; } & { content: string | import('vue').VNode | import('vue').Component; position: import('./types').ToastPositionT; targetOffset: number; targetAlign: "center" | "left" | "right"; onDurationEnd: () => void; onClose: (ev?: MouseEvent) => void; }>) => () => void; /** 关闭本 useToast 实例渲染的所有消息 */ close: () => void; /** 关闭所有实例渲染的所有消息 */ closeAll: () => void; }; export {};