import { TextureSource } from '../sources/TextureSource'; import { Texture } from '../Texture'; import type { BufferSourceOptions } from '../sources/BufferImageSource'; import type { CanvasSourceOptions } from '../sources/CanvasSource'; import type { ImageResource } from '../sources/ImageSource'; import type { TextureSourceOptions } from '../sources/TextureSource'; import type { TextureSourceLike } from '../Texture'; /** * The type of resource or options that can be used to create a texture source. * This includes ImageResource, TextureSourceOptions, BufferSourceOptions, and CanvasSourceOptions. * @category rendering * @advanced */ export type TextureResourceOrOptions = ImageResource | TextureSourceOptions | BufferSourceOptions | CanvasSourceOptions; /** * @param options * @deprecated since v8.2.0 * @see TextureSource.from * @category rendering * @internal */ export declare function autoDetectSource(options?: TextureResourceOrOptions): TextureSource; /** * @param options * @param skipCache * @internal */ export declare function resourceToTexture(options?: TextureResourceOrOptions, skipCache?: boolean): Texture; /** * Helper function that creates a returns Texture based on the source you provide. * The source should be loaded and ready to go. If not its best to grab the asset using Assets. * @param id - String or Source to create texture from * @param skipCache - Skip adding the texture to the cache * @returns The texture based on the Id provided * @category utils * @internal */ export declare function textureFrom(id: TextureSourceLike, skipCache?: boolean): Texture;