import { ExtendedTextMetrics, TextMetricOptions } from "./FontUtils";
/**
 * A canvas based getTextMetrics.
 * Canvas has limited support for font metrics we can do css sniffing to find lineGap but all
 * rendering values (underline offset/width, stroke offset/width, subSetting, italic angle, etc)
 * are not available in browsers.
 *
 * To this end we approximate.
 * * lineGap.
 * * underlineOffset
 * * underlineWidth
 * * stroke offset
 */
declare function CanvasTextMeasurer(text: string, size: number, family: string, options?: TextMetricOptions): ExtendedTextMetrics;
export default CanvasTextMeasurer;
//# sourceMappingURL=CanvasTextMeasurer.d.ts.map