import { FishDateStruct } from './fish-date-struct'; /** * Abstract type serving as a DI token for the service parsing and formatting dates for the FishInputDatepicker * directive. A default implementation using the ISO 8601 format is provided, but you can provide another implementation * to use an alternative format. */ export declare abstract class FishDateParserFormatter { /** * Parses the given value to an FishDateStruct. Implementations should try their best to provide a result, even * partial. They must return null if the value can't be parsed. * @param value the value to parse */ abstract parse(value: string): FishDateStruct; /** * Formats the given date to a string. Implementations should return an empty string if the given date is null, * and try their best to provide a partial result if the given date is incomplete or invalid. * @param date the date to format as a string */ abstract format(date: FishDateStruct): string; } export declare class FishDateISOParserFormatter extends FishDateParserFormatter { parse(value: string): FishDateStruct; format(date: FishDateStruct): string; }