1 | import { GemElement, TemplateResult } from '@mantou/gem/lib/element';
|
2 | import './use';
|
3 | declare type Type = 'success' | 'warning' | 'error' | 'default';
|
4 | interface Item {
|
5 | type: Type;
|
6 | content: string | TemplateResult;
|
7 | }
|
8 | interface Option {
|
9 | duration?: number;
|
10 | debug?: boolean;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | export declare class DuoyunToastElement extends GemElement {
|
16 | #private;
|
17 | data?: Item[];
|
18 | static instance?: DuoyunToastElement;
|
19 | static open(type: Type, content: string | TemplateResult, { debug, duration }?: Option): void;
|
20 | constructor();
|
21 | mounted: () => () => undefined;
|
22 | render: () => TemplateResult;
|
23 | }
|
24 | export declare const Toast: typeof DuoyunToastElement;
|
25 | export {};
|
26 |
|
\ | No newline at end of file |