import * as fontkit from 'fontkit'; import type { Font as FontKitFont } from 'fontkit'; import { Font } from '@pdfme/common'; import type { TextSchema, FontWidthCalcValues } from './types'; export declare const getBrowserVerticalFontAdjustments: (fontKitFont: FontKitFont, fontSize: number, lineHeight: number, verticalAlignment: string) => { topAdj: number; bottomAdj: number; }; export declare const getFontDescentInPt: (fontKitFont: FontKitFont, fontSize: number) => number; export declare const heightOfFontAtSize: (fontKitFont: FontKitFont, fontSize: number) => number; export declare const widthOfTextAtSize: (text: string, fontKitFont: FontKitFont, fontSize: number, characterSpacing: number) => number; export declare const getFontKitFont: (fontName: string | undefined, font: Font, _cache: Map) => Promise; export declare const getSplittedLines: (textLine: string, calcValues: FontWidthCalcValues) => string[]; export declare const calculateDynamicFontSize: ({ textSchema, font, value, startingFontSize, _cache, }: { textSchema: TextSchema; font: Font; value: string; startingFontSize?: number | undefined; _cache: Map; }) => Promise; export declare const splitTextToSize: (arg: { value: string; characterSpacing: number; boxWidthInPt: number; fontSize: number; fontKitFont: fontkit.Font; }) => string[]; export declare const isFirefox: () => boolean;