UNPKG

751 BTypeScriptView Raw
1import { GemElement, TemplateResult } from '@mantou/gem/lib/element';
2import './use';
3declare type Type = 'success' | 'warning' | 'error' | 'default';
4interface Item {
5 type: Type;
6 content: string | TemplateResult;
7}
8interface Option {
9 duration?: number;
10 debug?: boolean;
11}
12/**
13 * @customElement dy-toast
14 */
15export 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}
24export declare const Toast: typeof DuoyunToastElement;
25export {};
26//# sourceMappingURL=toast.d.ts.map
\No newline at end of file