import '../../../../_common/components/rich-text/rich-text.js';
import { ShadowlessElement } from '@blockeditor/lit';
import type { RichText } from '../../../../_common/components/rich-text/rich-text.js';
import { type TextElement } from '../../../../surface-block/index.js';
import type { EdgelessPageBlockComponent } from '../../edgeless-page-block.js';
declare const EdgelessTextEditor_base: typeof ShadowlessElement & import("@blockeditor/global/utils").Constructor<import("@blockeditor/lit").DisposableClass>;
export declare class EdgelessTextEditor extends EdgelessTextEditor_base {
    static PLACEHOLDER_TEXT: string;
    static HORIZONTAL_PADDING: number;
    static VERTICAL_PADDING: number;
    static BORDER_WIDTH: number;
    static styles: import("lit").CSSResult;
    richText: RichText;
    element: TextElement;
    edgeless: EdgelessPageBlockComponent;
    get inlineEditor(): import("../../../../index.js").AffineInlineEditor;
    get inlineEditorContainer(): import("@blockeditor/inline/inline-editor").InlineRootElement<import("../../../../index.js").AffineTextAttributes>;
    private _keeping;
    private _isComposition;
    setKeeping(keeping: boolean): void;
    getCoordsOnRightAlign(rect: {
        w: number;
        h: number;
        r: number;
        x: number;
        y: number;
    }, w1: number, h1: number): {
        x: number;
        y: number;
    };
    getCoordsOnCenterAlign(rect: {
        w: number;
        h: number;
        r: number;
        x: number;
        y: number;
    }, w1: number, h1: number): {
        x: number;
        y: number;
    };
    getCoordsOnLeftAlign(rect: {
        w: number;
        h: number;
        r: number;
        x: number;
        y: number;
    }, w1: number, h1: number): {
        x: number;
        y: number;
    };
    private _updateRect;
    getVisualPosition(element: TextElement): number[];
    getContainerOffset(): string;
    connectedCallback(): void;
    firstUpdated(): void;
    getUpdateComplete(): Promise<boolean>;
    render(): import("lit").TemplateResult<1>;
}
declare global {
    interface HTMLElementTagNameMap {
        'edgeless-text-editor': EdgelessTextEditor;
    }
}
export {};
//# sourceMappingURL=edgeless-text-editor.d.ts.map