/** Pure image role/kind classification for onboarding harvests. No network. */ import type { ExtractedImage } from "./extract.ts"; export type ImageRole = "logo" | "hero" | "photo" | "icon" | "failed"; export type ImageKind = "business" | "stock" | "generic" | "unknown"; export type ImageMediaType = "logo" | "illustration" | "screenshot" | "portrait" | "press" | "photo" | "icon"; export type ClassifiedImage = ExtractedImage & { role: ImageRole; kind: ImageKind; mediaType: ImageMediaType; inChrome?: boolean; fromJsonLdLogo?: boolean; fromOg?: boolean; aboveFold?: boolean; }; export declare function isStockHost(src: string): boolean; export declare function inferMediaType(img: ExtractedImage, role: ImageRole): ImageMediaType; export declare function classifyOne(img: ExtractedImage, opts?: { inChrome?: boolean; fromJsonLdLogo?: boolean; fromOg?: boolean; aboveFold?: boolean; }): ClassifiedImage; /** * Classify a list of images and promote a single logo + single hero when possible. */ export declare function classifyImages(images: Array): ClassifiedImage[];