/** * Keys used for the loaders */ export declare enum ELoaderKey { ArrayBuffer = "ArrayBuffer", Audio = "Audio", Blob = "Blob", Font = "Font", Image = "Image", ImageBitmap = "ImageBitmap", ImageCompressed = "ImageCompressed", JSON = "JSON", Text = "Text", Video = "Video", WebAssembly = "WebAssembly", XML = "XML" } /** * Conditionally load by device type */ export interface IByDeviceTypeOptions { DESKTOP?: string; TABLET?: string; MOBILE?: string; } /** * Conditionally load by supported GPU compressed texture format */ export interface IBySupportedCompressedTextureOptions { ASTC?: string; ETC?: string; S3TC?: string; PVRTC?: string; FALLBACK?: string; } /** * Main interface representing an object to load */ export interface ILoadItem { src: string; id?: string | number; loader?: ELoaderKey; loaderOptions?: any; options?: RequestInit; body?: TBodyMethod; mimeType?: SupportedType; } /** * Methods that can be called on a Request (object returned by fetch and that implements the [Body](https://developer.mozilla.org/en-US/docs/Web/API/Body) interface) */ export declare type TBodyMethod = 'arrayBuffer' | 'blob' | 'formData' | 'json' | 'text';