import { OnDestroy, PipeTransform } from "@angular/core";
import 'moment/locale/ar';
import { UserPreferencesService } from "../core/services/user/user-preferences.service";
import * as i0 from "@angular/core";
/**
* Converts date into how long time ago string
*
* ### In template example:
* ~~~html
*
* {{ dateObject | timeAgo }}
* ~~~
* @title
* Time Ago
*/
export declare class TimeAgoPipe implements PipeTransform, OnDestroy {
userPreferenceService: UserPreferencesService;
static DEFAULT_LOCALE: string;
static DEFAULT_DATE_TIME_FORMAT: string;
defaultLocale: string;
defaultDateTimeFormat: string;
private onDestroy$;
constructor(userPreferenceService: UserPreferencesService);
/**
*
* @param value date object
* @param locale locale to be transformed to
* @returns Time ago string (15 minutes ago)
*/
transform(value: Date, locale?: string): string;
/** @ignore */
ngOnDestroy(): any;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵpipe: i0.ɵɵPipeDeclaration;
}