1 | import { GemElement } from '@mantou/gem/lib/element';
|
2 | import './use';
|
3 | declare type State = {
|
4 | previewUrl: string;
|
5 | };
|
6 | declare type Action = {
|
7 | icon: string | Element | DocumentFragment;
|
8 | handle: () => void;
|
9 | };
|
10 | export declare type ImageStatus = 'negative' | 'positive' | 'default';
|
11 |
|
12 |
|
13 |
|
14 | export declare class DuoyunImagePreviewElement extends GemElement<State> {
|
15 | #private;
|
16 | status: ImageStatus;
|
17 |
|
18 | progress: number;
|
19 | file?: File;
|
20 | actions?: Action[];
|
21 | constructor();
|
22 | state: State;
|
23 | mounted: () => void;
|
24 | render: () => import("lit-html/lib/template-result").TemplateResult;
|
25 | }
|
26 | export {};
|
27 |
|
\ | No newline at end of file |