import { Package } from "@manypkg/get-packages"; export declare const NORMAL_DEPENDENCY_TYPES: readonly ["dependencies", "devDependencies", "optionalDependencies"]; export declare const DEPENDENCY_TYPES: readonly ["dependencies", "devDependencies", "optionalDependencies", "peerDependencies"]; export declare type Options = { defaultBranch?: string; ignoredRules?: string[]; }; declare type RootCheck = { type: "root"; validate: (rootPackage: Package, allPackages: Map, rootWorkspace: Package, options: Options) => ErrorType[]; fix?: (error: ErrorType, options: Options) => void | { requiresInstall: boolean; }; print: (error: ErrorType, options: Options) => string; }; declare type RootCheckWithFix = { type: "root"; validate: (rootPackage: Package, allPackages: Map, rootWorkspace: Package, options: Options) => ErrorType[]; fix: (error: ErrorType, options: Options) => void | { requiresInstall: boolean; }; print: (error: ErrorType, options: Options) => string; }; declare type AllCheck = { type: "all"; validate: (workspace: Package, allWorkspaces: Map, rootWorkspace: Package, options: Options) => ErrorType[]; fix?: (error: ErrorType, options: Options) => void | { requiresInstall: boolean; }; print: (error: ErrorType, options: Options) => string; }; declare type AllCheckWithFix = { type: "all"; validate: (workspace: Package, allWorkspaces: Map, rootWorkspace: Package, options: Options) => ErrorType[]; fix: (error: ErrorType, options: Options) => void | { requiresInstall: boolean; }; print: (error: ErrorType, options: Options) => string; }; export declare type Check = RootCheck | AllCheck | RootCheckWithFix | AllCheckWithFix; export declare function sortObject(prevObj: { [key: string]: string; }): { [key: string]: string; }; export declare function sortDeps(pkg: Package): void; export declare let getMostCommonRangeMap: (arg: Map) => Map; export declare function versionRangeToRangeType(versionRange: string): "" | "^" | "~"; export declare function isArrayEqual(arrA: Array, arrB: Array): boolean; declare function makeCheck(check: RootCheckWithFix): RootCheckWithFix; declare function makeCheck(check: AllCheckWithFix): AllCheckWithFix; declare function makeCheck(check: RootCheck): RootCheck; declare function makeCheck(check: AllCheck): AllCheck; export { makeCheck };