UNPKG

@accordproject/concerto-cto

Version:
22 lines (21 loc) 958 B
import { IModels } from '@accordproject/concerto-metamodel'; /** * Downloads all ModelFiles that are external dependencies and adds or * updates them in this ModelManager. * @param {*} models - the AST for all the known models * @param {Object} [options] - Options object passed to ModelFileLoaders * @param {FileDownloader} [fileDownloader] - an optional FileDownloader * @throws {IllegalModelException} if the models fail validation * @return {Promise} a promise when the download and update operation is completed. */ declare function resolveExternal(models: IModels, options?: any, fileDownloader?: any): Promise<IModels>; /** * Creates a default file downloader * @return {FileDownloader} a default file downloader instance */ declare function createDefaultFileDownloader(): any; declare const _default: { resolveExternal: typeof resolveExternal; createDefaultFileDownloader: typeof createDefaultFileDownloader; }; export = _default;