export class SogBundleParser { constructor(app: any); /** @type {AppBase} */ app: AppBase; canParse(context: any): boolean; /** * Checks if loading should be aborted due to asset unload, app teardown or invalid device. * * Nothing cancels an in-flight request, so any of these callbacks can run after * {@link AppBase#destroy}. That tears down in a fixed order - the asset registry is dropped * before the graphics device is marked destroyed - so a callback can arrive while `app.assets` * is already null and the device still looks alive. Every access here has to tolerate that, * hence the optional chaining on the registry rather than only on the device. * * @param {Asset} asset - The asset being loaded. * @param {boolean} unloaded - Whether the asset was unloaded during async loading. * @returns {boolean} True if loading should be aborted. * @private */ private _shouldAbort; /** * @param {object} url - The URL of the resource to load. * @param {string} url.load - The URL to use for loading the resource. * @param {string} url.original - The original URL useful for identifying the resource type. * @param {ResourceHandlerCallback} callback - The callback used when * the resource is loaded or an error occurs. * @param {Asset} asset - Container asset. */ load(url: { load: string; original: string; }, callback: ResourceHandlerCallback, asset: Asset): Promise; } import type { AppBase } from '../app-base.js'; import type { ResourceHandlerCallback } from '../handlers/handler.js'; import { Asset } from '../../framework/asset/asset.js';