import { type ContinuumPackageVersion } from '@hypersoniclabs/helix-manifest'; import type { HelixContinuumApi } from './continuum/client'; import { type SourceImageEntry } from './character/sourceImages'; import { type SourceDxFlipped, type SourceMismatch } from './sourceCorrespondence'; /** Runtime profile the variants ride under; it is not a `web*` profile, so no web loader treats them as renditions. */ export declare const SOURCE_IMAGE_PROFILE_ID = "source-image"; export type LoadedSourceImage = SourceImageEntry & { path: string; }; /** Read `source-images.json` from `dir` and refuse anything the backend would refuse, before a byte is uploaded. */ export declare function loadSourceImages(dir: string): Promise; /** Upload every image unchanged and (re)write the `source-image.` variants of `manifest`. The caller recomputes the closure. */ export declare function addSourceImageVariants(continuum: Pick, manifest: ContinuumPackageVersion, images: readonly LoadedSourceImage[], _audience: 'public' | 'private'): Promise; /** * Drop every retained source whose web texture (in `glb`, the web GLB being published) is not a downscale of it: a rebaked atlas * has a different UV layout, so the source would paint the wrong pixels on the desktop tier. The backend compiler re-checks * and is the authority; this keeps a known-bad original from being uploaded at all. `onDrop` gets one clear line per index (an * accepted DirectX normal is an info line, `source.normal.dx-flipped`, and is kept). */ export declare function dropMismatchedSourceImages(images: readonly LoadedSourceImage[], glb: Buffer, onDrop?: (message: string) => void): Promise<{ kept: LoadedSourceImage[]; dropped: SourceMismatch[]; flipped: SourceDxFlipped[]; }>;