import type { Run, RunStatus } from './types.js';
export interface RunRetentionConfig {
    enabled: boolean;
    maxCount: number;
    maxAgeDays: number;
}
export interface RunRetentionResult {
    deletedByCount: number;
    deletedByAge: number;
    totalAfter: number;
}
export declare function getRunRetentionConfig(): RunRetentionConfig;
export declare function isTerminalRunForRetention(status: RunStatus): boolean;
export declare function scheduleRunRetentionEnforcement(): void;
export declare function enforceRunRetention(config?: RunRetentionConfig): Promise<RunRetentionResult>;
export declare function sortRunsOldestFirst(runs: Run[]): Run[];
//# sourceMappingURL=run-retention.d.ts.map