import { ToastListProps, ToastListState } from '@douyinfe/semi-foundation/lib/es/toast/toastListFoundation'; import '@douyinfe/semi-foundation/lib/es/toast/toast.css'; import useToast from './useToast'; import { ConfigProps, ToastInstance, ToastProps, ToastState } from '@douyinfe/semi-foundation/lib/es/toast/toastFoundation'; import { CSSProperties } from 'vue'; import { VueJsxNode } from '../interface'; export interface ToastReactProps extends ToastProps { id?: string; style?: CSSProperties; icon?: VueJsxNode; content: VueJsxNode; } export type { ConfigProps, ToastListProps, ToastListState, ToastState }; declare const ToastList: import("vue").DefineComponent, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly> & Readonly<{}>, { stack: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export { ToastList }; export type ToastListType = { has: (id: string) => boolean; add: (opts: ToastInstance) => void; update: (id: string, opts: ToastInstance) => void; remove: (id: string) => void; destroyAll: () => void; setStack: (v: boolean) => boolean; getStack: () => boolean; }; export declare function useToastHook(configProps?: ConfigProps): { create: (opts: ToastReactProps) => string; close: (id: string) => void; destroyAll: () => void; getWrapperId: () => string; info: (opts: Omit | string) => string; warning: (opts: Omit | string) => string; error: (opts: Omit | string) => string; success: (opts: Omit | string) => string; config: (opts: ConfigProps) => void; useToast: typeof useToast; }; export declare class ToastFactory { static create(config?: ConfigProps): ReturnType; } declare const _default: { create: (opts: ToastReactProps) => string; close: (id: string) => void; destroyAll: () => void; getWrapperId: () => string; info: (opts: Omit | string) => string; warning: (opts: Omit | string) => string; error: (opts: Omit | string) => string; success: (opts: Omit | string) => string; config: (opts: ConfigProps) => void; useToast: typeof useToast; }; export default _default;