constant.d.ts 890 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { ToastPosition, TypeOptions } from '../types';
  2. type KeyOfPosition = 'TOP_LEFT' | 'TOP_RIGHT' | 'TOP_CENTER' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT' | 'BOTTOM_CENTER';
  3. type KeyOfType = 'INFO' | 'SUCCESS' | 'WARNING' | 'ERROR' | 'DEFAULT';
  4. /**
  5. * @deprecated
  6. */
  7. export declare const POSITION: {
  8. [key in KeyOfPosition]: ToastPosition;
  9. };
  10. /**
  11. * @deprecated
  12. */
  13. export declare const TYPE: {
  14. [key in KeyOfType]: TypeOptions;
  15. };
  16. export declare const enum Type {
  17. INFO = "info",
  18. SUCCESS = "success",
  19. WARNING = "warning",
  20. ERROR = "error",
  21. DEFAULT = "default"
  22. }
  23. export declare const enum Default {
  24. COLLAPSE_DURATION = 300,
  25. DEBOUNCE_DURATION = 50,
  26. CSS_NAMESPACE = "Toastify",
  27. DRAGGABLE_PERCENT = 80
  28. }
  29. export declare const enum Direction {
  30. X = "x",
  31. Y = "y"
  32. }
  33. export declare const enum SyntheticEvent {
  34. ENTRANCE_ANIMATION_END = "d"
  35. }
  36. export {};