import type { ReactNode } from "react";
import type { SelectProps } from "../../ui";
import type { FontStyle } from "../../visualizations/shared/types/measure-text";
/** Takes a translated string containing placeholders and returns a JSX expression containing components substituted in for the placeholders */
export declare const fillScheduleTemplate: (template: string, nodes: ReactNode[]) => ReactNode;
export declare const combineConsecutiveStrings: (arr: ReactNode[]) => ReactNode[];
export declare const getLongestSelectLabel: (data: SelectProps["data"]) => string;
/** Since measureTextWidth can throw an error, this function catches the error and returns a default width
 *
 * Note that you may want to set the style prop to reflect the currently chosen font family, like this:
 * ```
 *    const fontFamily = useSelector(state => getSetting(state, "application-font"));
 *    measureTextWidthSafely("string", 50, {family: fontFamily});
 * ```
 * */
export declare const measureTextWidthSafely: (text: string, defaultWidth: number, style?: Partial<FontStyle>) => number;
