import type { Document } from '@gltf-transform/core'; export type Ktx2Mode = 'etc1s' | 'uastc'; export interface Ktx2Result { encoder: 'basis-wasm'; mode: Ktx2Mode; encoded: { name: string; before: number; after: number; colorSpace: 'srgb' | 'linear'; }[]; } /** * Encodes the document's textures to KTX2 / Basis (KHR_texture_basisu) via the BasisU WASM * encoder — GPU-compressed in VRAM (ETC1S ~6–8×, UASTC ~4×) and transcoded once at load by the * client's KTX2Loader. Base color and emissive maps are perceptual sRGB; normal, metallic-roughness, * and occlusion maps are linear data. A source image reused across both groups is cloned before * encoding because the KTX2 transfer function belongs to the image, not to an individual material * slot. Textures already in image/ktx2 are skipped (idempotent). */ export declare function encodeKtx2(document: Document, opts?: { mode?: Ktx2Mode; quality?: number; }): Promise;