import { type HighlightStyle } from "@codemirror/language"; import { type Extension } from "@codemirror/state"; import { EditorView } from "@codemirror/view"; import { type ExternalChangeSelection } from "./useCodemirrorChange.js"; import { type IUseEventHandlersProps } from "./useEventHandlers.js"; export interface IUseCodemirrorProps extends IUseEventHandlersProps { value?: string; highlightStyle: HighlightStyle; label?: string; placeholderText?: string; disabled?: boolean; autocompletion?: { aboveCursor?: boolean; whenTyping?: boolean; whenTypingDelay?: number; }; beforeExtensions?: Extension[]; extensions?: Extension[]; onApi?: (view: EditorView | null) => void; /** Where the selection goes when the controlled value is replaced from outside. */ externalChangeSelection?: ExternalChangeSelection; } export declare function useCodemirror({ value, highlightStyle, label, disabled, autocompletion, placeholderText, extensions, beforeExtensions, onCompletion, onApi, onKeyDown, onCursor, onChange, onBlur, onFocus, externalChangeSelection, }: IUseCodemirrorProps): { editorRef: import("react").RefObject; viewRef: import("react").RefObject; }; //# sourceMappingURL=useCodemirror.d.ts.map