UNPKG

715 BTypeScriptView Raw
1import { Project } from "../project";
2export interface Packages {
3 [name: string]: string;
4}
5export interface Scopes {
6 [path: string]: Packages;
7}
8export interface ImportMap {
9 imports?: Packages;
10 scopes?: Scopes;
11}
12export declare function renormalizeMap(map: ImportMap, jspmPackagesURL: string, cdn: boolean): ImportMap;
13export declare function map(project: Project, env: any): Promise<ImportMap>;
14export declare function filterMap(project: Project, map: ImportMap, modules: string[], flatScope?: boolean): Promise<ImportMap>;
15export declare function trace(project: Project, map: ImportMap, baseDir: string, modules: string[], excludeDeps?: boolean): Promise<Record<string, Record<string, string>>>;