import type { TransitionHookCallbacks } from '../popup/common'; import type { ToastProps } from './common'; export interface ToastOptions extends ToastProps, TransitionHookCallbacks { } export interface ToastShowFunction { (optionsOrTitle?: string | number | ToastOptions, options?: ToastOptions, internalType?: ToastOptions['type']): void; } export interface ToastSimpleShowFunction { (optionsOrTitle?: string | number | ToastOptions, options?: ToastOptions): void; } export type ToastFunction = ToastSimpleShowFunction & { success: ToastSimpleShowFunction; fail: ToastSimpleShowFunction; loading: ToastSimpleShowFunction; hide: () => void; }; export declare function createToast(defaultOptions?: ToastOptions): ToastFunction; export declare const toast: ToastFunction;