import type { IntlFormatFn } from './intlformat.js'; import type { Format, IntlFormatRange } from './types.js'; type RangeInput = readonly [from: I, to: I]; type RangeFrom, I, O, R> = (optionsOrFallback: O | false | I | undefined, maybeOptions: O | false | undefined, format: IntlFormatFn) => Format; /** * Creates a range formatter in raw mode. * @param format - Formatter factory that supports a custom range formatting function. * @param options - Pass `false` to return the input range without formatting. * @returns Formatter that returns the input range or `undefined`. */ export declare function range, I, O, R>(format: RangeFrom, options: false): Format | undefined>; /** * Creates a locale-aware range formatter. * @param format - Formatter factory that supports a custom range formatting function. * @param options - Formatter options. * @returns Formatter that returns a formatted range string or `undefined`. */ export declare function range, I, O, R>(format: RangeFrom, options?: O): Format | undefined, string | undefined>; /** * Creates a range formatter in raw mode with a fallback range. * @param format - Formatter factory that supports a custom range formatting function. * @param fallback - Range returned when the input is `undefined` or `null`. * @param options - Pass `false` to return the input range or fallback without formatting. * @returns Formatter that returns the input range or fallback. */ export declare function range, I, O, R>(format: RangeFrom, fallback: RangeInput, options: false): Format | undefined, RangeInput>; /** * Creates a locale-aware range formatter with a fallback range. * @param format - Formatter factory that supports a custom range formatting function. * @param fallback - Range used when the input is `undefined` or `null`. * @param options - Formatter options, or `{}` for the defaults. * @returns Formatter that returns a formatted range string or `undefined`. */ export declare function range, I, O, R>(format: RangeFrom, fallback: RangeInput, options: O): Format | undefined, string | undefined>; export {}; //# sourceMappingURL=range.d.ts.map