import type { Buffer } from 'node:buffer';

export type OptimizeImageImportResult = {
  buffer: Buffer;
  mime: string;
  ext: string;
  width: number;
  height: number;
  passthrough: boolean;
};

export function optimizeImageBufferVisuallyLossless(
  input: Buffer,
): Promise<OptimizeImageImportResult>;
