export declare const CARBON_FAMILY = "carbon-fiber"; /** Default source-material names that are carbon under a clearcoat (AC/kn5 exterior naming). `EXT_painted_metal` is carbon on the Huayra BC; check each car. */ export declare const DEFAULT_CARBON_MATERIAL_PATTERN = "^(EXT_Carbon[0-9]*|EXT_Plastic_shinny|EXT_painted_metal)$"; export interface WeaveMaps { size: number; /** RGBA, tangent-space normal (R = x, G = y, B = z), alpha 255. */ normal: Uint8Array; /** RGBA glTF metallic-roughness: G = roughness multiplier (0.72..1, crowns glossier), B = 0 (non-metal), alpha 255. */ metallicRoughness: Uint8Array; } /** 2/2 twill, 4 tows per tile, seamless (periodic blur and periodic central differences). */ export declare function generateWeaveMaps(size?: number, tows?: number): WeaveMaps; export declare function encodePng(rgba: Uint8Array, size: number): Promise; export interface ApplyWeaveOptions { /** Real-world size of one weave tile, centimetres (4 tows of ~3 mm). Default 1.2. */ tileCm?: number; /** Clearcoat roughness factor. Default 0.17. */ roughness?: number; /** Normal scale; low so the twill reads through the clearcoat reflection rather than as hard checks. Default 0.45. */ normalScale?: number; /** Tag materials whose name matches this pattern as carbon-fiber (when no family is set yet) before weaving. Default {@link DEFAULT_CARBON_MATERIAL_PATTERN}; `null` disables. */ carbonMaterials?: string | null; /** Encode the two weave textures as KTX2 (UASTC, linear) and write KHR_texture_basisu. Default false (PNG). */ ktx2?: boolean; } export interface WeaveMaterialResult { material: string; metresPerUv: number; tilesPerUv: number; tagged: boolean; } export interface WeaveReport { weaved: WeaveMaterialResult[]; skipped: string[]; } /** * Apply the weave to a glTF-Transform document in place. Returns what it did. Throws when it weaves nothing, because a car that was * supposed to get a weave and did not (no carbon family, no UVs) must not look like a success. */ export declare function applyCarbonWeave(doc: unknown, options?: ApplyWeaveOptions): Promise; /** Read `inGlb`, weave, write `outGlb`. */ export declare function weaveGlbFile(inGlb: string, outGlb: string, options?: ApplyWeaveOptions): Promise;