/** * Poly Haven gltf dependency resolution. * * Poly Haven's glTF files reference their textures RELATIVELY ("textures/x.jpg") * but the files are NOT served at those relative locations — the real urls live in * the asset's `include` map on their files API (e.g. the 1k gltf's textures live * under ".../Textures/jpg/1k/…" and the shared .bin under the 8k folder). This is * their published standard: consumers are expected to resolve dependencies through * the API's include map, not by relative resolution. * * The loader chain consults this module whenever a glTF is loaded FROM * dl.polyhaven.org, so Poly Haven content works wherever the engine runs (a * deployed app loading a project document that references a Poly Haven material — * no host/editor involvement, same behavior as the Needle editor). */ /** true for gltf/glb urls served from Poly Haven's file CDN */ export declare function isPolyhavenGltfUrl(url: string): boolean; /** * Resolver for a Poly Haven gltf's dependency urls (textures, .bin), from the * asset's `include` map on the files API. Null when the asset can't be found or * the API is unreachable — the caller falls back to plain relative resolution * (which will 404, but that is Poly Haven's failure surface, not ours). */ export declare function getPolyhavenResolveUrl(sourceUrl: string): Promise<((url: string) => string) | null>;