UNPKG

@vchatcloud/vue-ui-kit

Version:

VChatCloud UI Kit for vue integration

51 lines (50 loc) 1.81 kB
import { ToastProps } from '../type'; export declare const toastStore: import('pinia').StoreDefinition<"toast", Pick<{ warn: (message: string) => void; error: (message: string) => void; info: (message: string) => void; toastList: import('vue').Ref<{ message: string; type: "error" | "warning" | "info"; showTime?: number | undefined; id?: string | undefined; }[], ToastProps[] | { message: string; type: "error" | "warning" | "info"; showTime?: number | undefined; id?: string | undefined; }[]>; setToast: ({ message, type, id, showTime }: ToastProps) => void; }, "toastList">, Pick<{ warn: (message: string) => void; error: (message: string) => void; info: (message: string) => void; toastList: import('vue').Ref<{ message: string; type: "error" | "warning" | "info"; showTime?: number | undefined; id?: string | undefined; }[], ToastProps[] | { message: string; type: "error" | "warning" | "info"; showTime?: number | undefined; id?: string | undefined; }[]>; setToast: ({ message, type, id, showTime }: ToastProps) => void; }, never>, Pick<{ warn: (message: string) => void; error: (message: string) => void; info: (message: string) => void; toastList: import('vue').Ref<{ message: string; type: "error" | "warning" | "info"; showTime?: number | undefined; id?: string | undefined; }[], ToastProps[] | { message: string; type: "error" | "warning" | "info"; showTime?: number | undefined; id?: string | undefined; }[]>; setToast: ({ message, type, id, showTime }: ToastProps) => void; }, "error" | "info" | "warn" | "setToast">>;