UNPKG

716 BTypeScriptView Raw
1import { GemElement } from '@mantou/gem/lib/element';
2import './use';
3declare type State = {
4 previewUrl: string;
5};
6declare type Action = {
7 icon: string | Element | DocumentFragment;
8 handle: () => void;
9};
10export declare type ImageStatus = 'negative' | 'positive' | 'default';
11/**
12 * @customElement dy-image-preview
13 */
14export declare class DuoyunImagePreviewElement extends GemElement<State> {
15 #private;
16 status: ImageStatus;
17 /**0-100 */
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}
26export {};
27//# sourceMappingURL=image-preview.d.ts.map
\No newline at end of file