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