export interface DiscoveredPackage { /** Absolute path to the package directory. */ dir: string; /** Absolute path to the package's settings config file. */ configPath: string; /** Short name (basename of the package dir). */ name: string; } /** * Walk from `start` toward the filesystem root and return the first * directory that looks like a workspace root: it contains one of the * `WORKSPACE_MARKERS` or a `.git` directory. Returns `undefined` if * no marker is found. */ export declare function findWorkspaceRoot(start: string): string | undefined; /** * List the packages under a workspace root that contain a * `node-settings.config.*` (or `settings.config.*`) file. * * Discovery priority: * 1. `pnpm-workspace.yaml` `packages:` globs (if present) * 2. `package.json` `workspaces` (npm / yarn / Bun) * 3. Heuristic: `packages/`, `apps/`, `services/`, `libs/` (legacy * fallback for casual single-app repos) * * Each candidate directory is then probed for a config file; the * ones with a config are returned, sorted by name. */ export declare function discoverWorkspacePackages(root: string): DiscoveredPackage[]; //# sourceMappingURL=workspace.d.ts.map