export class KTX2Loader extends Loader { constructor(manager: any); transcoderPath: string; transcoderBinary: string | ArrayBuffer | null; transcoderPending: Promise | null; workerPool: WorkerPool; workerSourceURL: string; workerConfig: { astcSupported: any; astcHDRSupported: boolean; etc1Supported: any; etc2Supported: any; dxtSupported: any; bptcSupported: any; pvrtcSupported: any; } | { astcSupported: any; astcHDRSupported: boolean; etc1Supported: any; etc2Supported: any; dxtSupported: any; bptcSupported: any; pvrtcSupported: any; } | { astcSupported: any; astcHDRSupported: any; etc1Supported: any; etc2Supported: any; dxtSupported: any; bptcSupported: any; pvrtcSupported: any; } | null; setTranscoderPath(path: any): this; setWorkerLimit(num: any): this; detectSupportAsync(renderer: any): Promise; detectSupport(renderer: any): this; init(): Promise; load(url: any, onLoad: any, onProgress: any, onError: any): void; parse(buffer: any, onLoad: any, onError: any): any; _createTextureFrom(transcodeResult: any, container: any): Promise | CompressedTexture; /** * @param {ArrayBuffer} buffer * @param {?Object} config * @return {Promise} */ _createTexture(buffer: ArrayBuffer, config?: Object | null): Promise; dispose(): this; } export namespace KTX2Loader { namespace BasisFormat { let ETC1S: number; let UASTC: number; let UASTC_HDR: number; } namespace TranscoderFormat { let ETC1: number; let ETC2: number; let BC1: number; let BC3: number; let BC4: number; let BC5: number; let BC7_M6_OPAQUE_ONLY: number; let BC7_M5: number; let PVRTC1_4_RGB: number; let PVRTC1_4_RGBA: number; let ASTC_4x4: number; let ATC_RGB: number; let ATC_RGBA_INTERPOLATED_ALPHA: number; let RGBA32: number; let RGB565: number; let BGR565: number; let RGBA4444: number; let BC6H: number; let RGB_HALF: number; let RGBA_HALF: number; } namespace EngineFormat { export { RGBAFormat }; export { RGBA_ASTC_4x4_Format }; export { RGB_BPTC_UNSIGNED_Format }; export { RGBA_BPTC_Format }; export { RGBA_ETC2_EAC_Format }; export { RGBA_PVRTC_4BPPV1_Format }; export { RGBA_S3TC_DXT5_Format }; export { RGB_ETC1_Format }; export { RGB_ETC2_Format }; export { RGB_PVRTC_4BPPV1_Format }; export { RGBA_S3TC_DXT1_Format }; } namespace EngineType { export { UnsignedByteType }; export { HalfFloatType }; export { FloatType }; } function BasisWorker(): void; } import { Loader } from 'three'; import { WorkerPool } from '../utils/WorkerPool.js'; import { CompressedTexture } from 'three'; import { CompressedArrayTexture } from 'three'; import { DataTexture } from 'three'; import { Data3DTexture } from 'three'; import { RGBAFormat } from 'three'; import { RGBA_ASTC_4x4_Format } from 'three'; import { RGB_BPTC_UNSIGNED_Format } from 'three'; import { RGBA_BPTC_Format } from 'three'; import { RGBA_ETC2_EAC_Format } from 'three'; import { RGBA_PVRTC_4BPPV1_Format } from 'three'; import { RGBA_S3TC_DXT5_Format } from 'three'; import { RGB_ETC1_Format } from 'three'; import { RGB_ETC2_Format } from 'three'; import { RGB_PVRTC_4BPPV1_Format } from 'three'; import { RGBA_S3TC_DXT1_Format } from 'three'; import { UnsignedByteType } from 'three'; import { HalfFloatType } from 'three'; import { FloatType } from 'three';