import { CommandOptions, SafetyTier } from "../types"; import { CleaningProfileName } from "../safety"; /** * Parse an age expression like "7d", "2w", "1m" (or a bare number of days) * into days. Returns undefined for unparseable input. */ export declare function parseAgeToDays(value?: string): number | undefined; /** * Parse a size expression like "100MB", "1GB" (or a bare number of MB) into * megabytes. Returns undefined for unparseable input. */ export declare function parseSizeToMB(value?: string): number | undefined; export type SafetyTierResolution = { ok: true; tiers: SafetyTier[]; source: "safety-flag" | "profile-flag" | "config" | "default"; profile?: CleaningProfileName; } | { ok: false; error: string; }; /** * Resolve the safety tiers to clean. Precedence: * 1. --safety (explicit tier list, overrides everything) * 2. --profile (named cleaning profile) * 3. config activeProfile (when it names a cleaning profile) * 4. the built-in default profile */ export declare function resolveSafetyTiers(options: Pick, configStore?: { get(): { activeProfile?: string; }; }): SafetyTierResolution; export declare function cleanCommand(options: CommandOptions): Promise; //# sourceMappingURL=clean.d.ts.map