/** * Normalizes bare npm import specifiers to their package root. * * @example * toPackageRootSpecifier('@scope/pkg/sub/file') -> '@scope/pkg' * toPackageRootSpecifier('lodash/debounce') -> 'lodash' */ export declare function toPackageRootSpecifier(specifier: string): string; /** * Returns true when `specifier` is a subpath import of `packageRoot`. */ export declare function isSubpathOfPackageRoot(specifier: string, packageRoot: string): boolean;