/** * @author Richard Davey * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ declare var Class: any; declare var CONST: { VERSION: string; BlendModes: any; ScaleModes: any; AUTO: number; CANVAS: number; WEBGL: number; HEADLESS: number; FOREVER: number; NONE: number; UP: number; DOWN: number; LEFT: number; RIGHT: number; }; declare var GetFastValue: any; declare var GetURL: any; declare var MergeXHRSettings: any; declare var XHRLoader: any; declare var XHRSettings: any; /** * @typedef {object} FileConfig * * @property {string} type - The file type string (image, json, etc) for sorting within the Loader. * @property {string} key - Unique cache key (unique within its file type) * @property {string} [url] - The URL of the file, not including baseURL. * @property {string} [path] - The path of the file, not including the baseURL. * @property {string} [extension] - The default extension this file uses. * @property {XMLHttpRequestResponseType} [responseType] - The responseType to be used by the XHR request. * @property {(XHRSettingsObject|false)} [xhrSettings=false] - Custom XHR Settings specific to this file and merged with the Loader defaults. * @property {any} [config] - A config object that can be used by file types to store transitional data. */ /** * @classdesc * The base File class used by all File Types that the Loader can support. * You shouldn't create an instance of a File directly, but should extend it with your own class, setting a custom type and processing methods. * * @class File * @memberOf Phaser.Loader * @constructor * @since 3.0.0 * * @param {Phaser.Loader.LoaderPlugin} loader - The Loader that is going to load this File. * @param {FileConfig} fileConfig - The file configuration object, as created by the file type. */ declare var File: { new (parts: (string | ArrayBuffer | Blob | ArrayBufferView)[], filename: string, properties?: FilePropertyBag): File; prototype: File; };