import type { HelixSceneV2 } from '@hypersoniclabs/helix-manifest'; /** Library slot -> top mip levels cut from the phone root's copy. */ export type LibraryCuts = Readonly>; export interface LibraryCutReport { slots: Array<{ slot: string; levels: number; before: number; after: number; uri: string; }>; bytesBefore: number; bytesAfter: number; } export interface LibraryCutPlan { /** Files to write into the cloned root, keyed by their uri inside it (the cut textures and the rewritten manifest). Empty when nothing was cut. */ files: Map; report: LibraryCutReport; } /** * Cuts the named slots out of the library the document `base` declares, reading the landscape package at `landDir`. Mutates `base.resources` * (the cut textures and the manifest: new bytes, new sha256); the caller seals the document afterwards and writes `files` into the cloned root. * A slot the library lacks, a file that is not what the manifest says, or one the trim cannot handle is left exactly as it is. */ export declare function planLibraryCuts(base: HelixSceneV2, landDir: string, cuts: LibraryCuts): LibraryCutPlan;