import { PiCaret } from "../../util/BehaviorUtils";
import { PiElement } from "../../language/PiModel";
import { Box } from "./Box";
export declare enum KeyPressAction {
    OK = 0,
    GOTO_NEXT = 1,
    NOT_OK = 2
}
export declare class TextBox extends Box {
    readonly kind = "TextBox";
    deleteWhenEmpty: boolean;
    deleteWhenEmptyAndErase: boolean;
    placeHolder: string;
    caretPosition: number;
    getText: () => string;
    setText: (newValue: string) => void;
    keyPressAction: (currentText: string, key: string, index: number) => KeyPressAction;
    constructor(exp: PiElement, role: string, getText: () => string, setText: (text: string) => void, initializer?: Partial<TextBox>);
    deleteWhenEmpty1(): boolean;
    setCaret: (caret: PiCaret) => void;
    update: () => void;
    isEditable(): boolean;
}
export declare function isTextBox(b: Box): b is TextBox;
//# sourceMappingURL=TextBox.d.ts.map