UNPKG

react-toasts-forked-esm

Version:
19 lines (18 loc) 785 B
import * as React from "react"; import { WatchableStore } from "watchable-stores"; export interface IToastsStore { status: string; message: string | React.ReactNode; timer: number; classNames: string[] | string; } declare class Store extends WatchableStore<IToastsStore> { constructor(); success(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void; info(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void; warning(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void; error(message: string | React.ReactNode, timer?: number, classNames?: string | string[]): void; private _toast; } export declare const ToastsStore: Store; export {};