import type { Document, Material } from '@gltf-transform/core'; export declare const UNREAL_MATERIAL_SIDECAR_SCHEMA: "helix.bridge.unreal-material-sidecar/1"; type Rgba = [number, number, number, number]; export interface UnrealMaterialTextureRecord { sourceAssetPath: string; path: string; sha256: string; sizeBytes: number; colorSpace: { srgb?: boolean; compressionSettings?: string; /** * Unreal's per-texture "Flip Green Channel" import setting. The exported PNG is the texture's * source art, which Unreal flips at build time when this is set: true means the art is already * OpenGL/glTF-convention. Absent or false means Unreal's native DirectX convention. */ flipGreenChannel?: boolean; }; } export interface UnrealMaterialSidecarSlot { slotIndex: number; slotName: string; importedSlotName: string; sourceMaterialAssetPath: string; sourceRootMaterialAssetPath: string; parameters: { scalars: Record; vectors: Record; textures: Record; }; } export interface UnrealMaterialSidecar { schemaVersion: typeof UNREAL_MATERIAL_SIDECAR_SCHEMA; asset: { slug: string; sourceMeshAssetPath: string; }; materials: UnrealMaterialSidecarSlot[]; } export interface AppliedUnrealMaterialSlot { slotIndex: number; materialName: string; /** Present when this Unreal slot carries no separate document material: it shares an earlier slot's * (same material ASSET, identical parameters), e.g. a template mesh's leftover slot no triangle uses. */ sharedWithSlotIndex?: number; baseColorTextureSha256?: string; normalTextureSha256?: string; ormTextureSha256?: string; ormColorSpaceConversion?: 'srgb-to-linear'; /** Present when the base-colour input was an occlusion map, bound as grey from its red channel. */ baseColorConversion?: 'occlusion-red-to-grey'; /** Unreal 'Alpha' cutout texture folded into base-colour alpha (MASK). */ cutoutTextureSha256?: string; /** Present when the bound normal map was converted from Unreal's DirectX convention. */ normalConventionConversion?: 'directx-to-gltf'; baseColorFactor?: Rgba; roughnessFactor?: number; metallicFactor?: number; alphaMode?: 'MASK' | 'BLEND'; unmappedTextureParameters: string[]; } export interface UnrealMaterialSidecarApplyResult { schemaVersion: typeof UNREAL_MATERIAL_SIDECAR_SCHEMA; sidecarPath: string; sourceMeshAssetPath: string; appliedSlots: AppliedUnrealMaterialSlot[]; preservedMaterialCount: number; verifiedTextureCount: number; createdTextureCount: number; } /** Returns the only accepted adjacent sidecar path for an FBX source. */ export declare function unrealMaterialSidecarPath(fbxPath: string): string; /** * Lists every adjacent file whose bytes can affect Unreal material translation. * Bridge binds these relative paths into its reviewed plan before snapshotting or execution. */ export declare function discoverUnrealMaterialSidecarDependencies(fbxPath: string): Promise; export interface MatchedMaterialSlot { slot: UnrealMaterialSidecarSlot; material: Material; /** Present when this slot was merged onto an earlier slot's document material (see `matchMaterials`). */ sharedWithSlotIndex?: number; } /** * Applies a verified adjacent Unreal sidecar to a glTF-Transform Document. * Validation and binding planning complete before the Document is mutated. */ export declare function applyUnrealMaterialSidecar(document: Document, fbxPath: string): Promise; export {};