import React from "react";
export interface MultilineTextEditorProps {
    readonly initialText?: string;
    readonly width?: number;
    readonly height?: number;
    readonly onSubmit?: (text: string) => void;
    readonly focus?: boolean;
    readonly onChange?: (text: string) => void;
    readonly initialCursorOffset?: number;
}
export interface MultilineTextEditorHandle {
    /** Current caret row */
    getRow(): number;
    /** Current caret column */
    getCol(): number;
    /** Total number of lines in the buffer */
    getLineCount(): number;
    /** Helper: caret is on the very first row */
    isCursorAtFirstRow(): boolean;
    /** Helper: caret is on the very last row */
    isCursorAtLastRow(): boolean;
    /** Full text contents */
    getText(): string;
    /** Move the cursor to the end of the text */
    moveCursorToEnd(): void;
}
declare const MultilineTextEditor: React.ForwardRefExoticComponent<MultilineTextEditorProps & React.RefAttributes<MultilineTextEditorHandle>>;
export default MultilineTextEditor;
