import type { PackageManagerContext, ParsedSource, SourceScope } from "./package-manager-types.ts";
import type { PackageSource } from "./settings-manager.ts";
export declare function parseNpmSpec(spec: string): {
    name: string;
    version?: string;
};
export declare function parseSource(source: string): ParsedSource;
export declare function getPackageSourceString(pkg: PackageSource): string;
export declare function packageSourcesMatch(context: PackageManagerContext, existing: PackageSource, inputSource: string, scope: SourceScope): boolean;
export declare function normalizePackageSourceForSettings(context: PackageManagerContext, source: string, scope: SourceScope): string;
export declare function getPackageIdentity(context: PackageManagerContext, source: string, scope?: SourceScope): string;
export declare function dedupePackages(context: PackageManagerContext, packages: Array<{
    pkg: PackageSource;
    scope: SourceScope;
}>): Array<{
    pkg: PackageSource;
    scope: SourceScope;
}>;
export declare function buildNoMatchingPackageMessage(context: PackageManagerContext, source: string, configuredPackages: PackageSource[]): string;
export declare function assertProjectTrustedForScope(context: PackageManagerContext, scope: SourceScope): void;
//# sourceMappingURL=package-manager-source.d.ts.map