import type { FnWithParams, Format } from './types.js'; /** * Creates a string formatter. * @returns Formatter that returns the input string or `undefined`. */ export declare function text(): Format; /** * Creates a string formatter with a fallback value. * @param fallback - String returned when the input is `undefined` or `null`. * @returns Formatter that returns the input string or fallback. */ export declare function text(fallback: string): Format; /** * Creates a formatter that uppercases the text of another formatter. * @param format - Formatter of a text, or of a message function like `params` or `plural`. * @returns Formatter with uppercased output. */ export declare function uppercase(format: Format): Format; export declare function uppercase(format: Format): Format; export declare function uppercase(format: Format>): Format>; /** * Creates a formatter that lowercases the text of another formatter. * @param format - Formatter of a text, or of a message function like `params` or `plural`. * @returns Formatter with lowercased output. */ export declare function lowercase(format: Format): Format; export declare function lowercase(format: Format): Format; export declare function lowercase(format: Format>): Format>; /** * Creates a formatter that capitalizes the text of another formatter. * @param format - Formatter of a text, or of a message function like `params` or `plural`. * @returns Formatter with the first character uppercased. */ export declare function capitalize(format: Format): Format; export declare function capitalize(format: Format): Format; export declare function capitalize(format: Format>): Format>; //# sourceMappingURL=text.d.ts.map