import { EventEmitter } from 'eventemitter3';
import type { Camera } from '../Camera';
export interface TextEditorEvents {
    change: (value: string) => void;
    done: (value: string) => void;
    caretOutRight: () => void;
}
export declare class TextEditor extends EventEmitter<TextEditorEvents> {
    readonly rootView: HTMLDivElement;
    private content;
    private camera;
    private originX;
    private originY;
    private rotation;
    private scale;
    constructor(camera: Camera);
    private handleContentInput;
    private handleContentKeydown;
    private handleContentBlur;
    private handleRootClick;
    private translateCaretIntoView;
    setContent(content: string): void;
    private updateMatrixStyle;
    setOrigin(x: number, y: number): void;
    setRotate(angle: number): void;
    setFontSize(value: number): void;
    setFontFamily(value: string): void;
    focus(): void;
    setCaret(): void;
    dispose(): void;
}
//# sourceMappingURL=TextEditor.d.ts.map