import type { HelixSceneV2 } from '@hypersoniclabs/helix-manifest'; export interface ObjectTextureCuts { /** Top mip levels (1 or 2) cut from colour-only model textures. */ models?: number; /** Top mip levels (1 or 2) cut from the distant-tree impostor atlases (colour and normal). */ atlases?: number; /** A texture is only cut when the cut keeps this many px on its short side (default 256). */ minEdge?: number; } export declare const OBJECT_TEXTURES_DIR = "placements/objects/"; export declare const DEFAULT_OBJECT_TEXTURE_MIN_EDGE = 256; export interface ObjectTextureCutReport { textures: Array<{ role: 'model' | 'atlas'; uri: string; levels: number; from: [number, number]; to: [number, number]; before: number; after: number; }>; bytesBefore: number; bytesAfter: number; /** Candidates left whole, by reason (too small after the cut, sampled as data, not a file the trim handles, bytes not what the document says). */ skipped: Record; } export interface ObjectTextureCutPlan { /** Files to write into the cloned root, keyed by their uri inside it. Empty when nothing was cut. */ files: Map; report: ObjectTextureCutReport; } /** `models=1,atlases=1,minEdge=256` (the compose CLI's form) -> cuts. */ export declare function parseObjectTextureCuts(text: string): ObjectTextureCuts; /** The compose CLI's form of the cuts, and the order the signature and the facts keep. */ export declare const formatObjectTextureCuts: (cuts: ObjectTextureCuts) => string; /** * Cuts the placement-object textures of the document `base`, reading the landscape package at `landDir`. Mutates `base.resources` (new bytes, new sha256); * the caller seals the document afterwards and writes `files` into the cloned root. */ export declare function planObjectTextureCuts(base: HelixSceneV2, landDir: string, cuts: ObjectTextureCuts): ObjectTextureCutPlan;