import { ControlValueAccessor } from '@angular/forms'; import { MatDateFormats } from '@angular/material/core'; import { DatepickerInterface } from './datepicker.interface'; import { L10nLocale } from 'angular-l10n'; import { Moment } from 'moment'; import { TerraPlacementEnum } from '../../../../../helpers'; import * as i0 from "@angular/core"; /** * Determines the language specified by angular-l10n's current locale which will be used as the locale for material's date picker. * @params locale angular-l10n's locale * @returns {string} The language specified by angular-l10n's current locale. */ export declare function matDateLocaleFactory(locale: L10nLocale): string; /** * Creates a deep clone of @angular/material-moment-adapter's {@link MAT_MOMENT_DATE_FORMATS}. * @returns {MatDateFormats} The date formats to be used by the datepicker. */ export declare function matDateFormatsFactory(): MatDateFormats; export declare class DatePickerComponent implements ControlValueAccessor, DatepickerInterface { private dateFormats; _locale: L10nLocale; /** Disables the input when set to true. Default false. */ isDisabled: boolean; /** Requires the input to be filled when set to true. Default false. */ isRequired: boolean; /** The name of the control which will be used as label. */ name: string; /** Sets the tooltip placement (bottom, top, left, right). Default top. */ tooltipPlacement: TerraPlacementEnum; /** Text that should be shown in a tooltip on the control. */ tooltipText: string; /** Specifies the display format of the date picker. */ set displayDateFormat(value: string); /** @description The internal data model */ value: Moment | null; /** Stores the callback function that will be called when the control's value changes in the UI. */ _onChangeCallback: (_: string) => void; /** Stores the callback function that will be called on blur. */ _onTouchedCallback: () => void; constructor(dateFormats: MatDateFormats, _locale: L10nLocale); /** Registers a callback function that is called when the control's value changes in the UI. */ registerOnChange(fn: (_: string) => void): void; /** Writes a new value to the input element. */ writeValue(value: string): void; /** Registers a callback function that is called by the forms API on initialization to update the form model on blur. */ registerOnTouched(fn: () => void): void; /** * Calls registered {@link _onChangeCallback} whenever the control's value changes in the UI. * The control's value is represented as ISO 8601 compliant date string. * @see {@link https://momentjs.com/docs/#/displaying/format/} for further details. */ _onChange(date: Moment | null): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }