import type { PackageJson } from "./package.types"; export interface WorkspacePackageEntry { readonly relativePath: string; readonly name: string; } /** Scoped workspace package: `@scope/name` → filesystem path `scope/name` */ export declare function getWorkspacePackagePath(packageName: string): string | null; /** Last path segment of a scoped package (e.g. `@packages/ui` → `ui`) for service name matching */ export declare function stripWorkspaceScope(packageName: string): string; export declare function parseWorkspacePatterns(workspaces: PackageJson["workspaces"]): string[]; export declare function findWorkspaceRootSync(startDir?: string): string; export declare function expandWorkspacePatterns(workspaceRoot: string, patterns: string[]): string[]; export declare function discoverWorkspacePackagesSync(workspaceRoot: string): WorkspacePackageEntry[]; export declare function discoverWorkspacePackageNamesSync(workspaceRoot: string): string[]; export declare function packageNameFromAbsolutePath(absolutePath: string, workspaceRoot: string, workspacePackages: readonly WorkspacePackageEntry[]): string | null; export declare function discoverWorkspacePackagesAsync(workspaceRoot: string, readDirectory: (dirPath: string) => Promise, canAccessFile: (filePath: string) => Promise, readFileAsText: (filePath: string) => Promise, rootPackageJson: PackageJson): Promise; export declare function discoverWorkspacePackageNamesAsync(workspaceRoot: string, readDirectory: (dirPath: string) => Promise, canAccessFile: (filePath: string) => Promise, readFileAsText: (filePath: string) => Promise, rootPackageJson: PackageJson): Promise; //# sourceMappingURL=workspace-discovery.d.ts.map