import type { ConsumedPendingRefresh } from './autonomous-workflow.js';
export declare const MAX_PENDING_REFRESHES = 20;
export type PendingRefreshSurface = 'print mode' | 'interactive mode';
export interface PendingRefreshDrainResult {
    count: number;
    limitExceeded: boolean;
    message?: string;
}
export interface PendingRefreshDrainOptions {
    consumePendingRefresh(): ConsumedPendingRefresh | null;
    preparePendingRefresh(refresh: ConsumedPendingRefresh): Promise<void>;
    prompt(prompt: string): Promise<void>;
    beforeRefresh?(refresh: ConsumedPendingRefresh): Promise<void>;
    surface: PendingRefreshSurface;
}
export declare function formatPendingRefreshLimitMessage(surface: PendingRefreshSurface): string;
export declare function drainPendingRefreshes(options: PendingRefreshDrainOptions): Promise<PendingRefreshDrainResult>;
//# sourceMappingURL=pending-refresh-runner.d.ts.map