import type { WorkspaceUnit } from '@opensip-cli/core'; /** * Walk /packages/** for directories containing tsconfig.json. * Each match becomes a WorkspaceUnit. Behavior matches the legacy * `discoverWorkspacePackages` in graph's scope.ts which this replaces. * * Returns absolute paths, sorted lexicographically. * * The unit `id` is the unit's path RELATIVE to /packages, in POSIX * form (e.g. `fitness/engine`, `graph/engine`, `core`). It must be unique and * stable: a bare `basename(dir)` collapses nested packages that share a leaf * name (this monorepo has `fitness/engine`, `graph/engine`, and * `simulation/engine` — three distinct packages all named `engine`). The id is * the shard id (graph's per-shard fragment-cache PRIMARY KEY), so a collision * silently overwrites cache rows and breaks build determinism. The * root-relative path restores a 1:1 id↔unit mapping. */ export declare function discoverTypescriptWorkspaceUnits(rootDir: string): Promise; //# sourceMappingURL=workspace-units.d.ts.map