import { WebComponentBase } from '../_web-component/WebComponentBase.js'; import '../t-file-dropzone/index.js'; import type { TFileDropzoneChangeDetail } from '../t-file-dropzone/t-file-dropzone.js'; import { type OutputFormat } from './image-compressor-utils.js'; export type CompressMode = 'quality' | 'targetSize'; export declare class ImageCompressor extends WebComponentBase { static styles: import("lit").CSSResultGroup[]; file: File | null; originalSize: number; quality: number; outputFormat: OutputFormat; mode: CompressMode; targetSizeKB: number; outputBlobUrl: string; outputSize: number; effectiveQuality: number; previewUrl: string; errorMsg: string; busy: boolean; debounceMs: number; private debounceTimer?; private runId; private clearSelectedFileState; onFileChange: (e: CustomEvent) => Promise; onModeChange: (e: Event) => void; onFormatChange: (e: Event) => void; onQualityInput: (e: Event) => void; onTargetSizeInput: (e: Event) => void; private scheduleCompress; compress: () => Promise; private commitOutput; get savingsPercent(): number; get downloadFileName(): string; private revokePreview; private revokeOutput; private resetOutput; disconnectedCallback(): void; private renderControls; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'image-compressor': ImageCompressor; } }