/** Bump when the capture script or the encode settings change in a way that changes the pixels. */ export declare const IMPOSTOR_CAPTURE_VERSION = 1; export interface ImpostorCaptureInputs { /** Resource id of the full-detail model (`placements.`). */ model: string; /** Resource ids of its textures, in the family's order. */ textures: string[]; size: number; ssaa: number; ramp: { lo: number; hi: number; } | null; center: number[]; radius: number; } export declare function impostorCacheKey(inputs: ImpostorCaptureInputs): string; export declare function impostorCacheDir(env?: NodeJS.ProcessEnv): string; export interface CachedAtlas { color: Uint8Array; normal: Uint8Array; } export declare function readImpostorAtlas(key: string, dir?: string): CachedAtlas | null; export declare function writeImpostorAtlas(key: string, atlas: CachedAtlas, dir?: string): void; interface SceneAtlasInput { placements?: { prototypes: Array<{ families: Array<{ id: string; lods: Array<{ model: string; }>; textures: Array<{ resource: string; }>; }>; }>; distant?: { atlases: Array<{ prototype: number; color: string; normal: string; size: number; center: number[]; radius: number; }>; }; }; } /** Keys and file ids of the atlases a finished Scene carries, assuming the default capture (ssaa 4, the default crown ramp) the conversion uses. */ export declare function atlasesOfScene(scene: SceneAtlasInput, ramp: { lo: number; hi: number; } | null, ssaa?: number): Array<{ key: string; color: string; normal: string; }>; /** Seeds the cache from a finished Scene folder (its `scene.helix-scene.json` and `placements/objects/.ktx2`). Returns how many atlases were new. */ export declare function seedImpostorCacheFromScene(sceneDir: string, ramp: { lo: number; hi: number; } | null, dir?: string, ssaa?: number): { atlases: number; added: number; }; export {};