import type { Parsed } from "../util.js"; import type { ResolvedConfig } from "../types.js"; export declare const DEFAULT_THRESHOLD = 3; export declare const DEFAULT_COOLDOWN_HOURS = 24; export interface AutoImproveResult { ran: boolean; /** Why it did not run, when it did not. One phrase, for the payload. */ skipped?: string; /** The watermark's account of what the run did, when it ran. */ action?: string | null; exit?: number; } /** The decision alone, pure enough to test: run, or say why not. */ export declare function shouldAutoImprove(args: { configured: boolean; declined: boolean; ci: boolean; improveLockHeld: boolean; healLockHeld: boolean; lastImproveAt: string | null; cooldownHours: number; now: string; newCount: number; newByDesign: number; threshold: number; }): { run: boolean; skipped?: string; }; export declare function maybeAutoImprove(resolved: ResolvedConfig, parsed: Parsed, log: (line: string) => void): Promise;