/** * Represents a dependency edge in the service dependency graph. */ export interface ServiceDependency { from: string; to: string; } /** * Builds and analyzes dependency graph of focused services. * * Tracks which services depend on which other services and * detects circular dependencies. */ export declare class DependencyGraphBuilder { private readonly dependencies; /** * Adds a dependency edge to the graph. * * @param from - Source service name * @param to - Target service name */ addDependency(from: string, to: string): void; /** * Detects circular dependencies in the graph. * * Uses depth-first search to find cycles. * * @returns Array of circular dependency paths (e.g., ['A → B → C → A']) */ detectCircularDependencies(): string[]; /** * Depth-first search to detect cycles. * * @param service - Current service being visited * @param visited - Set of all visited services * @param recursionStack - Set of services in current DFS path * @param path - Current path being explored * @param cycles - Array to collect detected cycles */ private dfs; /** * Gets all dependencies for a given service. * * @param serviceName - Service name * @returns Array of service names that this service depends on */ getDependencies(serviceName: string): string[]; /** * Gets the full dependency graph. * * @returns Array of all dependency edges */ getGraph(): ServiceDependency[]; } //# sourceMappingURL=dependency-graph-builder.d.ts.map