export interface EditorState { readonly text: string; readonly cursor: number; } export declare const EMPTY_EDITOR: EditorState; export declare function boundaries(text: string): number[]; export declare function normalize(state: EditorState): EditorState; export declare function prevBoundary(text: string, offset: number): number; export declare function nextBoundary(text: string, offset: number): number; export declare function insert(state: EditorState, value: string): EditorState; export declare function deleteBackward(state: EditorState): EditorState; export declare function deleteForward(state: EditorState): EditorState; export declare function moveLeft(state: EditorState): EditorState; export declare function moveRight(state: EditorState): EditorState; export declare function wordStartBefore(text: string, offset: number): number; export declare function wordEndAfter(text: string, offset: number): number; export declare function moveWordLeft(state: EditorState): EditorState; export declare function moveWordRight(state: EditorState): EditorState; export declare function deleteWordBackward(state: EditorState): EditorState; export declare function deleteWordForward(state: EditorState): EditorState; export declare function lineStart(text: string, offset: number): number; export declare function lineEnd(text: string, offset: number): number; export declare function moveLineStart(state: EditorState): EditorState; export declare function moveLineEnd(state: EditorState): EditorState; export declare function moveBufferStart(state: EditorState): EditorState; export declare function moveBufferEnd(state: EditorState): EditorState; export declare function deleteToLineStart(state: EditorState): EditorState; export declare function deleteToLineEnd(state: EditorState): EditorState; export declare function deleteLine(state: EditorState): EditorState; export declare function setText(state: EditorState, text: string): EditorState; export declare function replaceRange(state: EditorState, start: number, end: number, value: string): EditorState; export declare function logicalLines(text: string): string[]; export declare function caretPosition(state: EditorState): { line: number; column: number; }; export declare function moveLine(state: EditorState, delta: number): EditorState;