import type { Format } from './types.js'; import { type IntlFormatFn } from './intlformat.js'; /** * Creates a date/time 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 datetime(options: false): Format; /** * Creates a locale-aware date/time formatter. * @param options - `Intl.DateTimeFormat` options. * @returns Formatter that returns a formatted string or `undefined`. */ export declare function datetime(options?: Intl.DateTimeFormatOptions): Format; /** * Creates a date/time 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 datetime(fallback: Date | number | string, options: false): Format; /** * Creates a locale-aware date/time formatter with a fallback value. * @param fallback - Value used when the input is `undefined` or `null`. * @param options - `Intl.DateTimeFormat` options, or `{}` for the defaults. * @returns Formatter that returns a formatted string or `undefined`. */ export declare function datetime(fallback: Date | number | string, options: Intl.DateTimeFormatOptions): Format; /** * Creates a locale-aware date/time formatter with a custom formatting function. * @param optionsOrFallback - `Intl.DateTimeFormat` options, `false`, or fallback value. * @param maybeOptions - `Intl.DateTimeFormat` options or `false` when fallback is provided. * @param format - Custom formatting function. * @returns Formatter that returns a formatted string or `undefined`. */ export declare function datetime(optionsOrFallback: Intl.DateTimeFormatOptions | false | I | undefined, maybeOptions: Intl.DateTimeFormatOptions | false | undefined, format: IntlFormatFn): Format; //# sourceMappingURL=datetime.d.ts.map