import { EventName } from "chokidar/handler.js"; //#region src/create-dependency-graph.d.ts interface Module { path: string; dependencyPaths: string[]; dependentPaths: string[]; moduleDependencies: string[]; } type DependencyGraph = Record< /* path to module */string, Module>; /** * Creates a stateful dependency graph that is structured in a way that you can get * the dependents of a module from its path. * * Stateful in the sense that it provides a `getter` and an "`updater`". The updater * will receive changes to the files, that can be perceived through some file watching mechanism, * so that it doesn't need to recompute the entire dependency graph but only the parts changed. */ declare const createDependencyGraph: (directory: string) => Promise Promise, { /** * Resolves all modules that depend on the specified module, directly or indirectly. * * @param pathToModule - The path to the module whose dependents we want to find * @returns An array of paths to all modules that depend on the specified module */ readonly resolveDependentsOf: (pathToModule: string) => string[]; }]>; //#endregion export { createDependencyGraph as n, DependencyGraph as t }; //# sourceMappingURL=create-dependency-graph-CFBNerDY.d.ts.map