import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; /** * Formats JDate objects or convert Date objects (or any instance of classes those implement that interface) to a `JDate` object and format * that according to the given format. * * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to reformat the date on every change-detection * cycle, treat the date as an immutable object and change the reference when the pipe needs to run again. * * You can pass a format pattern string like [JDate format method]{@link https://alihoseiny.github.io/ngx-persian/classes/JDate.html#format} * * Also you can use pre-defined format names described below: * * 'SHORT': equivalent to yy/m/d h:M t {@example '97/2/23 12:12 ب.ظ'} * * 'SHORT_DATE': same as short * * 'MEDIUM': equivalent to 'd mmm yyyy، h:M t' {@example '23 اردیبهشت 1397، 12:12 ب.ظ'} * * 'MEDIUM_DATE': same as medium * * 'LONG': equivalent to 'd mmm yyyy، h:M:S T' {@example '23 اردیبهشت 1397، 12:12:30 بعد از ظهر'} * * 'LONG_DATE': same as long * * 'SHORT_TIME': equivalent to 'h:M t' {@example '12:12 ب.ظ'} * * 'MEDIUM_TIME': equivalent to 'h:M:S t' {@example '12:12:30 ب.ظ'} * * 'LONG_TIME': equivalent to 'h:M:S.l T' {@example '12:12:30.300 بعد از ظهر'} * * Default format is `medium`. */ export declare class JdatePipe implements PipeTransform { /** * Checks if `formatName` is in the `FormatNames` enum. If it is, returns related format string. Else returns `formatName` string * without any change. * * @param formatName format name or format pattern string * @return formatting pattern string */ private static convertNameToFormat; /** * Formatting the date using `format` method of it with proper formatting pattern created from `format` * * @param value a Jalali Date object or an instance of `Date` object or any class implementing that interface * @param format format name or format pattern string */ transform(value: Date, format?: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; }