import { TextParagraph } from "../TextParagraph";
import { IPoint } from "../../idl";
import { IParagraphStyle } from "../../idl/capInfo/ITextParagraphProps";
import { TextProps } from "../../graphics";
import { IParagraphQuoteStyle } from "../../idl/capInfo/ITextParagraphQuoteProps";
export declare class PrefixDrawer {
    computeStyle(glCtx: CanvasRenderingContext2D, paragraph: TextParagraph, paragraphX: number, prefixWidth: number, textProps: TextProps, paraStyle?: IParagraphStyle): void;
    private computePrefixToken;
    /**
     * 将数字转换为小写字母
     * 1->a, 2->b, ..., 26->z, 27->a, 28->b, ...
     */
    private numberToLetter;
    /**
     * 将数字转换为罗马数字
     * 1->I, 2->II, 3->III, 4->IV, 5->V, ...
     */
    private numberToRoman;
    computeParagraphX(spaceX: number, paraStyle?: IParagraphStyle, paraQuoteStyle?: IParagraphQuoteStyle): number;
    computePrefixWidth(glCtx: CanvasRenderingContext2D, textProps: TextProps): {
        width: number;
        height: number;
        prefixWidth: number;
    };
    draw(glCtx: CanvasRenderingContext2D, paragraph: TextParagraph, pos: IPoint): void;
    private firstLineHeight;
    private firstLineX;
}
//# sourceMappingURL=PrefixDrawer.d.ts.map