import { StateField, type Extension } from "@codemirror/state";
import { DecorationSet, ViewPlugin, type EditorView as EditorViewType, type ViewUpdate } from "@codemirror/view";
export declare const aiDiffDecorations: StateField<DecorationSet>;
export declare const aiDiffHunkActionsPlugin: ViewPlugin<{
    panels: Map<string, HTMLElement>;
    readonly onScroll: () => void;
    readonly onResize: () => void;
    readonly view: EditorViewType;
    update(update: ViewUpdate): void;
    sync(): void;
    repositionAll(): void;
    clearPanels(): void;
    destroy(): void;
}, undefined>;
export declare function enterDiffPhase(view: EditorViewType, from: number, to: number, original: string, result: string): void;
/** Esc 取消差异确认：从后向前拒绝全部待确认块 */
export declare function cancelDiffPhase(view: EditorViewType): void;
/** Esc 取消 AI 生成或差异确认 */
export declare function createAIKeymap(): Extension;
//# sourceMappingURL=diff-ui.d.ts.map