import { TextLine } from "./TextLine";
import { IPoint } from "../idl";
import { TextCursorPosition } from "./editInfo/TextCursorPosition";
import { Point } from "../common";
import { TextAlignType } from "../idl";
import { TextProps } from "../graphics";
import { IParagraphStyleProp } from "./paraStyle/IParagraphStyleProp";
export declare class TextParagraph {
    lines: TextLine[];
    /**
     * 段落定位
     */
    index: number;
    /**
     * 相对文本的位置
     */
    x: number;
    y: number;
    width: number;
    height: number;
    /**
     * 缓存量
     */
    paragraphStyle: IParagraphStyleProp | null;
    addLine(line: TextLine): void;
    contains(point: IPoint): boolean;
    headCursorPosition(): TextCursorPosition;
    tailCursorPosition(): TextCursorPosition;
    detect(point: IPoint): {
        lineIndex: number;
        charIndex: number;
    } | null;
    /**
     * 字符位置，
     * 返回参数为相对该段的坐标
     * @param lineIndex
     */
    getLine(lineIndex: number): TextLine | null;
    draw(glCtx: CanvasRenderingContext2D, pos: Point): void;
    alignHorizon(horizonAlign: TextAlignType, width: number): void;
    toString(): string;
    toRichTextXML(textProps: TextProps): string;
    prevToRichTextXML(lineIndex: number, textProps: TextProps): string;
    nextToRichTextXML(lineIndex: number, textProps: TextProps): string;
}
//# sourceMappingURL=TextParagraph.d.ts.map