import { Registry } from "./AppDataRegistry.js"; import { CommonJSONTypes, JSONFile } from "./JSONFileManagement.js"; declare class Folder { folderPath: string; private require; get packagePath(): string; package: JSONFile; dependancies: { [name: string]: DependancyFolder; }; registryOverrides: { [name: string]: DependancyFolder; }; dependanciesLoaded: boolean; constructor(path: string); finalizeResolve(path: string): string; requireResolve(type: "browser" | "node", path: string): string; requireResolvePackage(path: string): string; clearDepenancies(): void; loadDependancies(type: "browser" | "node"): void; } /** * This contains all of the information about a source folder and it's * dependancies. */ export declare class SourceFileFolder extends Folder { get tsConfigPath(): string; tsconfig: JSONFile; constructor(path: string); load(type: "browser" | "node"): void; /** * Edits the compilerOptions.paths property in a tsconfig to include all of the node_modules (on the client). * @param routes the routes to be added. */ addTSConfigPaths(routes: ReturnType["routes"]): void; addRegistrySourcesToTSConfigPaths(type: "browser" | "node"): void; /** * Edits the compilerOptions.paths property in a tsconfig to include all of the node_modules (on the client). * @param routes the routes to be removed. */ removeTSConfigPaths(routes: ReturnType["routes"]): void; removeRegistrySourcesFromTSConfigPaths(type: "browser" | "node"): void; } export declare class ProjectFolder extends SourceFileFolder { } export declare class DependancyFolder extends Folder { mainPath: string; parent: Folder; fromRegistry: boolean; constructor(folder: string, main: string, parent: Folder, fromRegistry: boolean); loadDependancies(type: "browser" | "node"): true | undefined; } export {};