UNPKG

653 BTypeScriptView Raw
1import { ToastPosition, TypeOptions } from '../types';
2declare type KeyOfPosition = 'TOP_LEFT' | 'TOP_RIGHT' | 'TOP_CENTER' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT' | 'BOTTOM_CENTER';
3declare type KeyOfType = 'INFO' | 'SUCCESS' | 'WARNING' | 'ERROR' | 'DEFAULT';
4export declare const POSITION: {
5 [key in KeyOfPosition]: ToastPosition;
6};
7export declare const TYPE: {
8 [key in KeyOfType]: TypeOptions;
9};
10export declare const enum Default {
11 COLLAPSE_DURATION = 300,
12 DEBOUNCE_DURATION = 50,
13 CSS_NAMESPACE = "Toastify",
14 DRAGGABLE_PERCENT = 80
15}
16export declare const enum Direction {
17 X = "x",
18 Y = "y"
19}
20export {};