export interface MediaFingerprint { sha256: string; byteLength: number; mimeType?: string; } export declare function fingerprintMedia(data: Uint8Array, mimeType?: string): MediaFingerprint; export declare function extractCssColors(value: string): string[]; export declare function rankColorSamples(samples: readonly string[], limit?: number): string[]; export declare function extractDominantColors(data: Uint8Array, limit?: number): Promise; export interface CroppedImageRegion { data: Uint8Array; mimeType: "image/png"; width: number; height: number; } export declare function compareRasterImages(input: { source: Uint8Array; rendered: Uint8Array; maxInputBytes?: number; }): Promise<{ meanAbsoluteDifference: number; width: number; height: number; }>; /** Crops a bounded raster region without retaining the source image. */ export declare function cropImageRegion(input: { data: Uint8Array; left: number; top: number; width: number; height: number; maxInputBytes?: number; maxOutputPixels?: number; }): Promise; export declare function readBoundedResponseBytes(response: Response, maxBytes: number): Promise; //# sourceMappingURL=media.d.ts.map