import { IByDeviceTypeOptions, IBySupportedCompressedTextureOptions, ILoadItem } from './types'; /** * Asynchronous asset preloader */ export declare class AssetLoader { /** * Load conditionally based on device type */ static byDeviceType: (data: IByDeviceTypeOptions) => string | undefined; /** * Load conditionally based on supported compressed texture */ static bySupportedCompressedTexture: (data: IBySupportedCompressedTextureOptions) => string | undefined; /** * DOMParser instance for the XML loader */ private static domParser; /** * Get a file extension from a full asset path * * @param path Path to asset */ private static getFileExtension; /** * Retrieve mime type from extension * * @param loaderKey Loader key * @param extension extension */ private static getMimeType; /** * Retrieve loader key from extension (when the loader option isn't specified) * * @param path File path */ private static getLoaderByFileExtension; /** * Fetch wrapper for loading an item, to be processed by a specific loader afterwards * * @param item Item to fetch */ private static fetchItem; /** * Load an item and parse the Response as arrayBuffer * * @param item Item to load */ private static loadArrayBuffer; /** * Load an item and parse the Response as