import NamedComponent from "../named-component/index.js"; import { ValueOf } from "ts-essentials"; import BufferView from "../buffer-view/index.js"; import Indexer from "../asset/indexer/index.js"; declare const supportedMimeTypes: readonly ["image/jpeg", "image/png"]; export type SupportedMimeType = ValueOf; /** * TextureImage - a builder for a GLTF image object * @see {@link https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#reference-image | GLTF reference} * @hideconstructor */ export default class TextureImage extends NamedComponent<{ uri: string; mimeType: SupportedMimeType; bufferView: BufferView; }> { constructor(); /** * Sets the image URI to use as image data * * @param {string} uri * @returns {TextureImage} this */ uri(uri: string): TextureImage; /** * Sets the mime-type for the image. Must be set if providing data via bufferView * * @param {string} mimeType must be one of "image/jpeg", "image/png" * @returns {TextureImage} this */ mimeType(mimeType: SupportedMimeType): TextureImage; /** * Sets the buffer view holding the image data. * * @param {BufferView} bufferView * @returns {TextureImage} this */ bufferView(bufferView: BufferView): TextureImage; build(indexer: Indexer): object; } export {};