declare module 'browser-image-compression' {
  export interface Options {
    maxSizeMB?: number;
    maxWidthOrHeight?: number;
    useWebWorker?: boolean;
    fileType?: string;
    initialQuality?: number;
    alwaysKeepResolution?: boolean;
    preserveExif?: boolean;
    onProgress?: (progress: number) => void;
    usePixelLength?: boolean;
    signal?: AbortSignal;
  }

  function imageCompression(file: File | Blob, options?: Options): Promise<Blob>;
  export default imageCompression;
}
