export interface ImportmapDeclaration { type: 'inline' | 'url'; value: string; } export interface RoutesDeclaration { type: 'inline' | 'url'; value: string; } export interface ImportmapAndRoutes { importMap: ImportmapDeclaration; routes: RoutesDeclaration; } export interface ImportmapAndRoutesWithWatches extends ImportmapAndRoutes { importMap: ImportmapDeclaration; routes: RoutesDeclaration; watchedRoutesPaths: Record; } export declare function checkImportmapJson(value: string): boolean; export declare function checkRoutesJson(value: string): boolean; export declare function runProject(basePort: number, sourceDirectoryPatterns: Array, useRspack?: boolean): Promise<{ importMap: Record; routes: Record; watchedRoutesPaths: Record; }>; /** * @param importAndRoutes An ImportmapAndRoutes object that holds the current import map and routes registries * @param additionalImportsAndRoutes An object containing any import map entries, routes, and watched route files to add to the setup * @param backend The URL for the backend * @param spaPath The spaPath for this instance * @returns The import map declaration with the new imports added in. If * there are new imports to add, and if the original import map declaration * had type "url", it is downloaded and resolved to one of type "inline". */ export declare function mergeImportmapAndRoutes(importAndRoutes: ImportmapAndRoutes, additionalImportsAndRoutes: { importMap: Record; routes: Record; watchedRoutesPaths: Record; } | false, backend?: string, spaPath?: string): Promise; export declare function getImportmapAndRoutes(importMapPath: string, routesPath: string, basePort?: number): Promise; export declare function getImportMap(importMapPath: string, basePort?: number): Promise; export declare function getRoutes(routesPath: string): Promise; /** * @param importmapAndRoutes An ImportmapAndRoutes object that holds the import map and routes registry * @param backend The URL for the backend * @param spaPath The spaPath for this instance * @returns The same import map declaration but with all imports changed to the appropriate path */ export declare function proxyImportmapAndRoutes(importmapAndRoutes: ImportmapAndRoutesWithWatches, backend: string, spaPath: string): { importmap: ImportmapDeclaration; routes: RoutesDeclaration; watchedRoutesPaths: Record; }; //# sourceMappingURL=importmap.d.ts.map