type EstimateLineCountProps = { text: string; maxWidth: number; isNumeric?: boolean; }; export type EstimateLineCount = ({ text, maxWidth, isNumeric }: EstimateLineCountProps) => number; export interface MeasureTextHook { estimateWidth: (length: number) => number; measureText: (text: string) => number; estimateLineCount: EstimateLineCount; } export interface FontProps { fontSize?: string; fontFamily?: string; fontStyle?: string; fontWeight?: string; } type OptionsProps = { maxNbrLinesOfText?: number; }; export default function useMeasureText({ fontSize, fontFamily, fontStyle, fontWeight, }: FontProps, options?: OptionsProps): MeasureTextHook; export {};