/** * Downloads the given 'module' JS file as an MJS file (to force correct interpretation when loading the JS file). * * The associated source map will also be downloaded if present to sit alongside the main JS file and if the base snippets URL is a localhost URL. * * If METICULOUS_PRELOADED_SNIPPETS_DIR is set and the asset exists there, it is returned directly without any * network calls. This is used in the cloud replay worker where the bundles are baked in at build time. * * Warning: this function is not thread safe. Do not try downloading a file to a path that may already be in use by another process. * * (for example most downloads are generally done at the test run level rather than the replay level) */ export declare const fetchAsset: (path: string) => Promise; /** * Returns a record from asset path to a boolean indicating if the asset is outdated. */ export declare const checkIfAssetsOutdated: (assetPaths: string[]) => Promise>;