/** * An import of one bundled file, as `import.meta.glob` maps it. MUST NOT throw * synchronously; a failure rejects. */ type Importer = () => Promise; /** A directory's index: each profile's `./.json` mapped to its import. */ type ProfileIndex = Readonly>; /** * A loader of the JSON profiles in `versionFiles` and in the directories * `indexes` lists, keyed as `import.meta.glob` keys them. * * The loader imports each bundled file at most once at a time. A load of a * file whose import is in flight or has resolved shares that import; a load * after an import rejected imports again. A path the maps do not list as an * own key imports nothing and is not remembered. */ export declare const createLazyImport: (versionFiles: Readonly>, indexes: Readonly>>) => (path: string) => Promise; /** The loader of the bundled JSON profiles. */ export declare const lazyImport: (path: string) => Promise; export {}; //# sourceMappingURL=utils.d.ts.map