UNPKG

382 BTypeScriptView Raw
1import { ToastProps } from './toast';
2export declare type ToastShowProps = Omit<ToastProps, 'visible'>;
3export declare type ToastHandler = {
4 close: () => void;
5};
6export declare function show(p: ToastShowProps | string): ToastHandler;
7export declare function clear(): void;
8export declare function config(val: Pick<ToastProps, 'duration' | 'position' | 'maskClickable'>): void;