import { FontInUnits, FontInPx } from "../font"; import { Size } from "../geometry"; declare class TextMeasureUtils { private readonly dummyContext; /** * Provides text measuring utilities methods. */ constructor(); /** * Measures text height for specified font. * @param {String} font - text font. * @returns {number} */ measureTextHeight(font: string): number; /** * Measures font height in pixels. * @param {FontInUnits | FontInPx} font - text font. * @returns {number} */ measureFontHeight(font: FontInUnits | FontInPx): number; /** * Measures text width for specified font. * @param {String} font - text font. * @param {String} text - text to measure * @returns {number} */ measureTextWidth(font: string, text: string): number; /** * Measures text size for specified font. * @param {FontInUnits | FontInPx} font - text font. * @param {String} text - text to measure * @returns {Size} */ measureTextSize(font: FontInUnits | FontInPx, text: string): Size; } declare const textMeasureUtils: TextMeasureUtils; export { textMeasureUtils as TextMeasureUtils }; //# sourceMappingURL=text-measure-utils.d.ts.map