import { InjectionToken, Provider } from '@angular/core'; import { VudDateStruct } from './datepicker.model'; import * as i0 from "@angular/core"; export declare function VUD_DATEPICKER_PARSER_FORMATTER_FACTORY(): VudDateParserFormatterDefault; /** * Converts between the internal `VudDateStruct` model presentation and a `string` that is displayed in the input element. */ export declare abstract class VudDateParserFormatter { /** * When user types something in the input this method attempts to parse it into a `VudDateStruct` object. * `null` must be returned if the value can't be parsed. */ abstract parse(value: string): VudDateStruct | null; /** * When users enters a valid date (either via keyboard or mouse click) this method reformats it into a preferred format. * An empty string must be returned if the given date is `null`. */ abstract format(date: VudDateStruct | null): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export type VudDatepickerFormats = { [locale: string]: { input: string[]; output: string; }; }; export declare const VUD_DEFAULT_DATEPICKER_FORMATS: VudDatepickerFormats; export declare const VUD_DATE_PARSER_FORMATTER_CONFIG: InjectionToken; export declare function extendVudDateParserFormatter(formats: VudDatepickerFormats): Provider; export declare class VudDateParserFormatterDefault extends VudDateParserFormatter { /** @ignore */ private readonly locale; /** @ignore */ private readonly formats; parse(value: string): VudDateStruct | null; format(date: VudDateStruct): string; private dateFormatToRegexp; private addYearPadding; private printUnknownLocaleWarning; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }