declare module "heic-convert" { type ConvertOptions = { buffer: Buffer | ArrayBuffer | Uint8Array; format: "JPEG" | "PNG"; quality?: number; }; type ConvertAllOptions = ConvertOptions; type ConvertibleImage = { convert: () => Promise; }; function convert( options: ConvertOptions ): Promise; namespace convert { function all(options: ConvertAllOptions): Promise; } export = convert; }