toast.d.ts 758 B

12345678910111213141516171819202122232425262728293031
  1. /// <reference types="node" />
  2. import { SuperComponent } from '../common/src/index';
  3. import { ToastOptionsType } from './index';
  4. declare type Timer = NodeJS.Timeout | null;
  5. export default class Toast extends SuperComponent {
  6. externalClasses: string[];
  7. options: {
  8. multipleSlots: boolean;
  9. };
  10. behaviors: string[];
  11. hideTimer: Timer;
  12. data: {
  13. prefix: string;
  14. classPrefix: string;
  15. typeMapIcon: string;
  16. };
  17. properties: import("./type").TdToastProps;
  18. lifetimes: {
  19. detached(): void;
  20. };
  21. pageLifetimes: {
  22. hide(): void;
  23. };
  24. methods: {
  25. show(options: ToastOptionsType): void;
  26. hide(): void;
  27. destroyed(): void;
  28. loop(): void;
  29. };
  30. }
  31. export {};