@tplc/wot
Version:
16 lines (15 loc) • 384 B
TypeScript
import type { Toast, ToastOptions } from './types'
/**
* useToast 用到的key
*
* @internal
*/
export declare const toastDefaultOptionKey = '__TOAST_OPTION__'
export declare const defaultOptions: ToastOptions
export declare function useToast(selector?: string): Toast
export declare const toastIcon: {
success(): string
warning(): string
info(): string
error(): string
}