import type { AttributeState } from './attributestate.js'; export declare class TextMeasure { private textMeasuringTextElement?; private measureMethods; private static readonly testString; private static readonly epsilon; getTextOffset(text: string, attributeState: AttributeState): number; measureTextWidth(text: string, attributeState: AttributeState): number; private getMeasurementTextNode; private canvasTextMeasure; private svgTextMeasure; /** * Canvas text measuring is a lot faster than svg measuring. However, it is inaccurate for some fonts. So test each * font once and decide if canvas is accurate enough. */ private getMeasureFunction; cleanupTextMeasuring(): void; } //# sourceMappingURL=textmeasure.d.ts.map