import { Messages } from '@salesforce/core';
export type AnyMessages = Messages<any>;
import type { Profile, ProfileId } from '../profiles/index.js';
import type { StaleRuleFile, SupportedTool } from '../types/index.js';
export declare const STALE_VERSION_MDC: RegExp;
export declare const STALE_VERSION_FLAT: RegExp;
export declare function detectTools(cwd: string): SupportedTool[];
export declare function resolveTools(cwd: string, flagValue: string | undefined, workspaceTools: SupportedTool[] | undefined, msgs: AnyMessages): Promise<SupportedTool[]>;
export declare function resolveProfiles(cwd: string, flagValue: string | undefined, msgs: AnyMessages, warnFn?: (msg: string) => void): Promise<{
    profiles: Profile[];
    usedDefault: boolean;
}>;
export declare function findStaleFiles(cwd: string): StaleRuleFile[];
export type DriftEntry = {
    file: string;
    tool: SupportedTool;
    reason: 'version' | 'content' | 'missing';
};
export declare function findContentDrift(cwd: string): DriftEntry[];
export declare function inferProfiles(cwd: string): ProfileId[];
export declare function cleanLegacyDirs(cwd: string): string[];
