import type { Immutable, Texture, TextureInternal, TextureOptions, TextureSourceOptions } from './RITypes'; import { TextureSourceType } from './RITypes'; import type { PredyRenderer } from './PredyRenderer'; import { PredyGPUResource } from './PredyGPUResource'; export declare function closeImageBitMap(img: any): void; export declare class PredyTexture extends PredyGPUResource implements Texture { readonly id: string; readonly options: Immutable; readonly sourceType: TextureSourceType; readonly name: string; private _offloaded; private _mipmapCount; constructor(options: TextureOptions, renderer?: PredyRenderer); checkOptions(options: TextureOptions): Immutable; get width(): number; get height(): number; onAssignRenderer(renderer: PredyRenderer): void; private calcMipmapCount; private calcCubeImageSize; private calcInternalSize; _assignRenderer(renderer: PredyRenderer): void; uploadCurrentVideoFrame(): boolean; reloadDataAsync(): Promise; offloadData(): void; private updateSourceToInternalTexture2DImages; private updateSourceToInternalTexture2DImagesData; private updateCompressedMipmaps; private updateSourceToInternalCubeImagesData; private updateSourceToInternalCubeImages; private updateSourceToInternal; updateSource(options: TextureSourceOptions): void; }