import { NativeDateAdapter } from '@angular/material/core'; /** * Define date formats to be used with the custom date adapter */ export declare const TS_DATE_FORMATS: { parse: { dateInput: { month: string; year: string; day: string; }; }; display: { dateInput: string; monthYearLabel: { year: string; month: string; }; dateA11yLabel: { year: string; month: string; day: string; }; monthYearA11yLabel: { year: string; month: string; }; }; }; /** * Custom date adapter for the underlying Material Datepicker */ export declare class TsDateAdapter extends NativeDateAdapter { /** * Format the date when setting the UI * * @param date - The date chosen * @param displayFormat - The desired format (not currently using, but must match API) * @returns The date string */ format(date: Date, displayFormat?: any): string; /** * Check if a date is valid * * @param date - The date in question * @returns Whether it is valid */ isValid(date: Date): boolean; /** * Force a two digit string with a preceding `0` if needed * * @param n - The number * @returns The two digit number */ private forceTwoDigits; }