import type { CanvasTextFontFamily } from '../../consts.js'; export declare const isRTL: (text: string) => boolean; export declare function wrapFontFamily(fontFamily: CanvasTextFontFamily): string; export declare function getLineHeight(fontFamily: CanvasTextFontFamily, fontSize: number): number; export declare function getFontString({ fontStyle, fontWeight, fontSize, fontFamily, }: { fontStyle: string; fontWeight: string; fontSize: number; fontFamily: CanvasTextFontFamily; }): string; export declare function normalizeText(text: string): string; export declare function splitIntoLines(text: string): string[]; export declare function getLineWidth(text: string, font: string): number; export declare function getTextRect(text: string, fontFamily: string, fontSize: number): { w: number; h: number; }; export declare function getTextWidth(text: string, font: string): number; export declare function parseTokens(text: string): string[]; export declare const charWidth: { calculate: (char: string, font: string) => number; getCache: (font: string) => number[]; }; export declare function wrapText(text: string, font: string, maxWidth: number): string; export declare function getFontFacesByFontFamily(fontFamily: CanvasTextFontFamily): FontFace[]; //# sourceMappingURL=utils.d.ts.map