import ts from 'typescript';
/**
 * Extracts the external package name from a module specifier, if any.
 * Relative paths, `#` subpath imports, and `node:` builtins are internal.
 */
export declare function packageNameFromSpecifier(specifier: string): string | undefined;
/**
 * Collects the external packages the workspace's own source files import
 * (static imports and re-exports reachable from the entry points). This is
 * the "does this package use the dependency itself" signal consumed by the
 * `peerForwarding: 'when-used'` policy — a peer contract inherited from a
 * dependency chain only forwards conclusively when the package appears here.
 */
export declare function getImportedPackages(program: ts.Program, workspaceDir: string): Set<string>;
//# sourceMappingURL=importedPackages.d.ts.map