UNPKG

355 BTypeScriptView Raw
1import { isToastActive } from '../core/store';
2import { Toast, ToastContainerProps, ToastPosition } from '../types';
3export declare function useToastContainer(props: ToastContainerProps): {
4 getToastToRender: <T>(cb: (position: ToastPosition, toastList: Toast[]) => T) => T[];
5 isToastActive: typeof isToastActive;
6 count: number | undefined;
7};