import { CompletionSource } from "@codemirror/autocomplete";
import { EditorView } from "@codemirror/view";
export interface IUseEventHandlersProps {
    onChange: (value: string) => void;
    onCursor?: (from: number, to: number) => void;
    onCompletion?: CompletionSource;
    onKeyDown?: (event: KeyboardEvent, view: EditorView) => boolean;
    onFocus?: (event: FocusEvent, view: EditorView) => void;
    onBlur?: (event: FocusEvent, view: EditorView) => void;
}
export declare function useEventHandlers({ onChange, onKeyDown, onCursor, onCompletion, onFocus, onBlur, }: IUseEventHandlersProps): {
    handleChange: import("react").RefObject<(value: string) => void>;
    handleCursor: import("react").RefObject<(from: number, to: number) => void>;
    handleKeyDown: import("react").RefObject<(event: KeyboardEvent, view: EditorView) => boolean>;
    handleCompletion: import("react").RefObject<CompletionSource>;
    handleFocus: import("react").RefObject<(event: FocusEvent, view: EditorView) => void>;
    handleBlur: import("react").RefObject<(event: FocusEvent, view: EditorView) => void>;
};
//# sourceMappingURL=useEventHandlers.d.ts.map