import { type CorrespondenceResult, type CorrespondenceRole } from './sourceCorrespondence.core'; export * from './sourceCorrespondence.core'; /** The `reason` a mismatched retained source is dropped with (same code as the backend's `source.mismatch` warning). */ export declare const SOURCE_MISMATCH: "source.mismatch"; /** Info note (same code as the backend's compile note): an Unreal DirectX-convention normal source was accepted; the compiler flips its green. */ export declare const SOURCE_NORMAL_DX_FLIPPED: "source.normal.dx-flipped"; export type EncodedImage = { bytes: Uint8Array; mimeType: string; }; /** * Is `source` (a retained original) what web texture `web` was made from, at the web texture's UV layout? Decodes both (a web * KTX2 included), downscales the larger to the smaller's size and compares them per role. Same signature as the backend's * `sourceMatchesWeb`; the importer's rebake step calls this one. */ export declare function sourceMatchesWeb(web: EncodedImage, source: EncodedImage, role: CorrespondenceRole): Promise; /** The web GLB's embedded images by glTF image index with the texture role each one plays (first use wins; unused: baseColor). */ export declare function webGlbImages(glb: Buffer): Map; export type SourceMismatch = { index: number; role: CorrespondenceRole; reason: string; }; export type SourceDxFlipped = { index: number; role: CorrespondenceRole; }; /** * Judge every `source-image.` entry against the web GLB. An index whose web texture is not a downscale of the source is * dropped from that entry (the entry is dropped when none remain); the compiler would drop it too, so nothing wrong is uploaded. * An index with no embedded web image to compare is kept (the compiler judges it). A normal source that matches only with green * inverted (Unreal, DirectX) is kept and reported in `flipped`: the compiler flips its green for the desktop tier. */ export declare function filterSourceImagesByWeb(images: readonly (E & { path: string; })[], glb: Buffer, readSource: (image: E & { path: string; }) => Promise, roleFor: (indexes: number[]) => string): Promise<{ kept: Array; dropped: SourceMismatch[]; flipped: SourceDxFlipped[]; }>;