import { AfterViewInit, OnDestroy, TemplateRef, ChangeDetectorRef, Type } from '@angular/core'; import { FieldTypeConfig, FormlyConfig, FormlyFieldConfig } from '@ngx-formly/core'; import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field'; import { ComponentType } from '@angular/cdk/portal'; import { MatCalendarCellClassFunction, MatDatepicker } from '@angular/material/datepicker'; import * as i0 from "@angular/core"; interface DatepickerProps extends FormlyFieldProps { datepickerOptions?: Partial<{ touchUi: boolean; opened: boolean; disabled: boolean; startView: 'month' | 'year' | 'multi-year'; datepickerTogglePosition: 'suffix' | 'prefix'; calendarHeaderComponent: ComponentType; filter: (date: any | null) => boolean; min: any; max: any; dateInput: (field: FieldTypeConfig, event: any) => void; dateChange: (field: FieldTypeConfig, event: any) => void; monthSelected: (field: FieldTypeConfig, event: any, picker: MatDatepicker) => void; yearSelected: (field: FieldTypeConfig, event: any, picker: MatDatepicker) => void; dateClass: MatCalendarCellClassFunction; panelClass: string | string[]; startAt: any | null; }>; } export interface FormlyDatepickerFieldConfig extends FormlyFieldConfig { type: 'datepicker' | Type; } export declare class FormlyFieldDatepicker extends FieldType> implements AfterViewInit, OnDestroy { private config; private cdRef; datepickerToggle: TemplateRef; defaultOptions: { props: { datepickerOptions: { startView: "month"; datepickerTogglePosition: "suffix"; disabled: boolean; opened: boolean; dateInput: () => void; dateChange: () => void; monthSelected: () => void; yearSelected: () => void; }; }; }; private fieldErrorsObserver; constructor(config: FormlyConfig, cdRef: ChangeDetectorRef); detectChanges(): void; ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};