import type { Format } from './types.js'; export type Duration = Partial>; /** * Creates a duration formatter in raw mode. * @param options - Pass `false` to return the input value without formatting. * @returns Formatter that returns the input value or `undefined`. */ export declare function duration(options: false): Format; /** * Creates a locale-aware duration formatter. * @param options - `Intl.DurationFormat` options. * @returns Formatter that returns a formatted string or `undefined`. */ export declare function duration(options?: Intl.DurationFormatOptions): Format; /** * Creates a duration formatter in raw mode with a fallback value. * @param fallback - Value returned when the input is `undefined` or `null`. * @param options - Pass `false` to return the input value or fallback without formatting. * @returns Formatter that returns the input value or fallback. */ export declare function duration(fallback: Duration, options: false): Format; /** * Creates a locale-aware duration formatter with a fallback value. * @param fallback - Value used when the input is `undefined` or `null`. * @param options - `Intl.DurationFormat` options, or `{}` for the defaults. * @returns Formatter that returns a formatted string or `undefined`. */ export declare function duration(fallback: Duration, options: Intl.DurationFormatOptions): Format; //# sourceMappingURL=duration.d.ts.map