import { AbstractEngine } from "@babylonjs/core/Engines/abstractEngine"; export interface IPreloadAssetsToDatabaseOptions { engine?: AbstractEngine; /** * Defines wether to disable loading and saving images to the database. * This is particularly useful when the application supports compressed KTX textures. So only KTX textures are stored. */ disableImages?: boolean; /** * A callback function that is called with the progress of the asset loading process, as a value between 0 and 1. * @param progress defines the progress of the asset loading process, as a value between 0 and 1. */ onProgress?: (progress: number) => void; } /** * Preloads the assets used by the scenes into the database. * This can be used to preload the assets before starting the application or to update the database with new assets after a new deployment. * This is particularly useful to improve loading times when the application with a slow network connection, as the assets will be loaded from the local database instead of being downloaded from the server each time. * @param databaseName defines the name of the database to create (if doesn't exists) and open and save files to it * @param rootUrl defines the root url to load the scenes used files list and the scene manifest files from. Typically "/scenes/". * @param options defines the options for preloading assets, including a callback function to be called with the progress of the asset loading process */ export declare function preloadAssetsToDatabase(databaseName: string, rootUrl: string, options?: IPreloadAssetsToDatabaseOptions): Promise;