import type { ImageBitmapInternal, Texture, TextureConfigOptions, TextureFactory, TextureFactorySourceFrom, TextureOptions } from './RITypes'; import type { TypedArray, vec2 } from './RITypes'; import type { TextureConfigOptionsBase, TextureSourceCubeData } from '@predy-js/render-interface/types/Texture'; import type { TextureCubeSourceURLMap } from '@predy-js/render-interface'; type Blob = Uint8Array; export declare class PredyTextureFactory implements TextureFactory { reloadPending: { [key: string]: Promise; }; constructor(); loadMipmapImagesAsync(pointers: vec2[], bin: ArrayBuffer): Promise; loadImageAsync(url: string | Blob, textureOptions?: TextureConfigOptionsBase): Promise; requestBinaryAsync(url: string): Promise; loadImageBinaryAsync(binary: ArrayBuffer | TypedArray, mime?: string): Promise; canOffloadTexture(texture: Texture): boolean; loadSourceAsync(sourceFrom: TextureFactorySourceFrom, config?: TextureConfigOptions): Promise; _loadCubeMapAsync(map: TextureCubeSourceURLMap | string[], config?: TextureConfigOptions): Promise; loadCompressedTextureFromArrayBuffer(arrayBuffer: ArrayBuffer, options?: TextureOptions): TextureOptions; reloadTextureAsync(texture: Texture): Promise; } export declare function getDefaultTextureFactory(): TextureFactory; export declare function setDefaultTextureFactory(factory: TextureFactory): void; export {};