import type { CompactResult } from "../../types.js";
export type RewritePolicyOptions = {
    minSavedCharsAny?: number;
    genericFallbackMinSavedChars: number;
    genericFallbackMaxRatio: number;
    skipGenericFallbackForCompoundCommands: boolean;
};
export declare function getCompactionSkipReason(command: string, rawText: string, result: CompactResult, options: RewritePolicyOptions): "no-compaction" | "low-savings-compaction" | "generic-compound-command" | "generic-weak-compaction" | null;
