import type { EscalateRole } from '../../types/escalator.js';
export interface RetryKey {
    role: EscalateRole;
    specId: string;
    frontmatterSha: string;
}
/**
 * Increment the retry counter for (projectId, role, specId, frontmatterSha).
 * Returns the new count.
 * Purges entries older than 7 days lazily before writing.
 */
export declare function incrementCounter(projectId: string, key: RetryKey): Promise<number>;
/**
 * Read the current retry count.
 * Returns 0 if no entry exists. Purges stale entries lazily.
 */
export declare function readCounter(projectId: string, key: RetryKey): Promise<number>;
/**
 * Reset the retry counter (e.g. after user answers abort/manual-override).
 */
export declare function resetCounter(projectId: string, key: RetryKey): Promise<void>;
//# sourceMappingURL=retry-counter.d.ts.map