import type { ExtensionContext } from '../../../extensions/index.js';
export interface EditModeAwareResult {
    editMode?: boolean;
}
export interface EditModeRetryTiming {
    retryIntervalMs: number;
    blockingPromptAfterMs: number;
    promptCooldownMs: number;
}
export declare function getEditModeAbortMessage(): string;
export declare function isEditModeAbortError(error: unknown): boolean;
export declare function resolveEditModeRetry<TResult extends EditModeAwareResult>(initialResult: TResult, options: {
    ctx?: Pick<ExtensionContext, 'hasUI' | 'ui'>;
    signal?: AbortSignal;
    send: () => Promise<TResult>;
    timing?: Partial<EditModeRetryTiming>;
}): Promise<TResult>;
//# sourceMappingURL=edit-mode-retry.d.ts.map