/** * Calculates the value font size for the given string inputs to fit into a container * * We can assume that the space needed scales linearly with the font size * therefore we can measure a text with font size 10 and interpolate * the font size with a given width and height * the smaller fontsize for a given width and a given height is the perfect fit * * @param container - container element for the text * @param text - string to measure the font size * @param element - element containing text font style * @param suffix - string to measure the suffix font size * @param suffixElement - element containing suffix font style * * @returns perfect font size */ export declare function useFontSizeForContainer({ container, text, element, suffix, suffixElement, }: { container: { width: number; height: number; }; text: string; element?: HTMLElement | null; suffix?: string; suffixElement?: HTMLElement | null; }): number;