import type { Workspace } from '../../../pm/index.ts';
import type { CheckPackageParams } from './checkPackageTypes.ts';
type DepSection = 'dependencies' | 'devDependencies' | 'peerDependencies';
export type WorkspaceProtocol = 'workspace:*' | 'workspace:^' | 'workspace:~';
export interface VersionProblem {
    dep: string;
    expectedVersion?: WorkspaceProtocol;
    section: DepSection;
    version: string;
}
export interface PeerVersionIncompatibility {
    actualVersion: string;
    declaredRange: string;
    dep: string;
}
export declare function findWorkspaceVersionProblems(packageParams: CheckPackageParams, workspaceNames: Set<string>, expectedVersion?: WorkspaceProtocol): VersionProblem[];
export declare function findWorkspacePeerVersionProblems(packageParams: CheckPackageParams, workspaceNames: Set<string>, location: string): PeerVersionIncompatibility[];
export declare function getWorkspaceVersionProblems({ name, location }: Workspace, packageParams: CheckPackageParams, workspaceNames: Set<string>): number;
export declare function fixWorkspaceVersionProblems(workspace: Workspace, packageParams: CheckPackageParams, workspaceNames: Set<string>, expectedVersion?: WorkspaceProtocol): number;
export {};
//# sourceMappingURL=getWorkspaceVersionProblems.d.ts.map