import { OnDestroy, PipeTransform } from '@angular/core'; import { UserPreferencesService } from '../core/services/user/user-preferences.service'; import * as i0 from "@angular/core"; /** * Transforms date to localized date string * * ### In template example: * ~~~html * *

* {{ dateObject | localizedDate: "EEEE, MMMM dd, yyyy" }} *

* ~~~ * @title * Localized Date * * @example * ... * constructor(... private LocalizedDatePipe: localizedDatePipe ...){ * const localizedDateString = this.localizedDatePipe.transform(dateObject, 'EEEE, MMMM dd, yyyy'); * } * ... */ export declare class LocalizedDatePipe implements PipeTransform, OnDestroy { userPreferenceService?: UserPreferencesService; static DEFAULT_LOCALE: string; static DEFAULT_DATE_FORMAT: string; defaultLocale: string; defaultFormat: string; private onDestroy$; constructor(userPreferenceService?: UserPreferencesService); /** * * @param value date object * @param format format * @param locale locale to convert to * @returns localized date string */ transform(value: any, format?: string, locale?: string, ignoreOffset?: boolean): any; /** @ignore */ ngOnDestroy(): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; }