/** * The InputFormatterFn. * It takes an unformatted model value and returns a formatted one. * * @public * @param modelValue - The value to be formatted. * @returns formatted value. */ export type InputFormatterFn = (modelValue: string) => string; /** * @public */ export declare namespace InputFormatters { /** * Formats a number as currency. * * @public * @param code - The currency code (e.g., 'USD', 'EUR'). * @param locale - The locale code (e.g., 'en-US', 'de-DE'). * @returns {InputFormatterFn} - The function that formats the number as currency. */ function currency(code: string, locale: string): InputFormatterFn; /** * Formats a number as a percentage. * * @public * @param {number} decimalPlaces - The number of decimal places to display. * @returns {InputFormatterFn} - The function that formats the number as a percentage. */ function percentage(decimalPlaces: number): InputFormatterFn; /** * Formats a number with custom decimal places. * * @public * @param {number} decimalPlaces - The number of decimal places to display. * @param {string} locale - The locale code (e.g., 'en-US', 'de-DE'). * @returns {InputFormatterFn} - The function that formats the number with custom decimal places. */ function number(decimalPlaces: number, locale: string): InputFormatterFn; /** * Formats a date. * * @public * @param {DateTimeFormatter} format - The format options. * @param {string} locale - The locale code (e.g., 'en-US', 'de-DE'). * @returns {InputFormatterFn} - The function that formats the date. */ function date(format: string, locale: string): InputFormatterFn; /** * Formats a time. * * @public * @param {Intl.DateTimeFormatOptions} format - The format options. * @param {string} locale - The locale code (e.g., 'en-US', 'de-DE'). * @returns {InputFormatterFn} - The function that formats the time. */ function time(format: Intl.DateTimeFormatOptions, locale: string): InputFormatterFn; /** * Formats a date and time. * * @public * @param {Intl.DateTimeFormatOptions} format - The format options. * @param {string} locale - The locale code (e.g., 'en-US', 'de-DE'). * @returns {InputFormatterFn} - The function that formats the date and time. */ function dateTime(format: Intl.DateTimeFormatOptions, locale: string): InputFormatterFn; } //# sourceMappingURL=InputFormatterFn.d.ts.map