import { WrDateAdapter, WrDateFormat } from 'ngwr/date-adapter'; import * as i0 from '@angular/core'; import { EnvironmentProviders } from '@angular/core'; /** * {@link WrDateAdapter} backed by `date-fns`. Same `Date` value type as the * native adapter, but defers all math, formatting, and parsing to date-fns * — pick this when you want more robust locale-aware patterns (`P`, `PP`, * `PPP`, `p`) without writing them by hand. * * @example * ```ts * bootstrapApplication(AppComponent, { * providers: [provideWrDateFnsAdapter()], * }); * ``` * * Peer dep: `date-fns@^3` (or `^4`). */ declare class WrDateFnsAdapter extends WrDateAdapter { private readonly locale; today(): Date; clone(date: Date): Date; createDate(year: number, month: number, day: number): Date; isValid(date: Date): boolean; getYear(date: Date): number; getMonth(date: Date): number; getDate(date: Date): number; getDayOfWeek(date: Date): number; getDaysInMonth(date: Date): number; getHours(date: Date): number; getMinutes(date: Date): number; getSeconds(date: Date): number; addYears(date: Date, amount: number): Date; addMonths(date: Date, amount: number): Date; addDays(date: Date, amount: number): Date; setTime(date: Date, hours: number, minutes: number, seconds: number): Date; isSameDay(a: Date, b: Date): boolean; isSameMonth(a: Date, b: Date): boolean; compareDate(a: Date, b: Date): number; format(date: Date, formatKeyOrString: WrDateFormat | (string & {})): string; parse(value: string, formatKeyOrString: WrDateFormat | (string & {})): Date | null; getFirstDayOfWeek(): number; getDayOfWeekNames(style: 'narrow' | 'short' | 'long'): readonly string[]; getMonthNames(style: 'narrow' | 'short' | 'long'): readonly string[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE */ /** * Register the {@link WrDateFnsAdapter} so date-pickers / calendars in this * app use `date-fns` for all math and formatting. Pass `locale` to override * the BCP 47 tag. * * @example * ```ts * bootstrapApplication(AppComponent, { * providers: [provideWrDateFnsAdapter()], * }); * ``` */ declare function provideWrDateFnsAdapter(options?: { readonly locale?: string; }): EnvironmentProviders; export { WrDateFnsAdapter, provideWrDateFnsAdapter };