import { ContextManager } from '@zcomponent/core'; import * as THREE from 'three'; import { Texture, TextureConstructorProps } from './Texture'; /** * The properties for constructing an image texture. */ export interface ImageTextureConstructorProps extends TextureConstructorProps { /** * The source image file. * @zprop * @zvalues files *.+(jpg|jpeg|png|webp) */ source: string; } /** * Create a texture to apply to a surface or as a reflection or refraction map. * * Root element: [THREE.Texture](https://threejs.org/docs/index.html#api/en/textures/Texture) * @zcomponent * @zgroup Texture * @zicon texture * @ztag three/Texture/ImageTexture * @zparents three/Material/** */ export declare class ImageTexture extends Texture { protected constructorProps: ImageTextureConstructorProps; /** * Creates a texture from an image file. * @param contextManager - The context manager. * @param constructorProps - The constructor properties. */ constructor(contextManager: ContextManager, constructorProps: ImageTextureConstructorProps); private _load; }