export declare function calculateTextWidth(fontFamilyKey: Record, text: string, defaultWidth?: number): any;