import { Extension } from "@codemirror/state";
import { ViewUpdate } from "@codemirror/view";
import type { CursorPosition } from "../code-editor";
interface BaseExtensionsOptions {
    includeKeymap?: boolean;
    includeLineNumbers?: boolean;
    lineWrapping?: boolean;
    onChange?: (value: string, viewUpdate: ViewUpdate) => void;
    onCursorChange?: (position: CursorPosition) => void;
    onEditorUpdate?: (update: ViewUpdate) => void;
    onSelectionChange?: (characterCount: number) => void;
    placeholder?: string;
    readonly?: boolean;
    theme?: Extension;
}
/**
 * 提供代码编辑器的基础扩展集合
 * 包括：行号、历史、括号匹配、折叠、缩进等
 *
 * @param options - 配置选项
 * @returns 基础扩展数组
 */
export declare function useBaseExtensions(options?: BaseExtensionsOptions): Extension[];
export {};
