import { ComplexAttributeConverter, ReactiveElement } from 'lit'; import { DateAdapter } from '../datetime.ts'; import { Interface } from './base.ts'; /** * Will convert date object values to ISO8601 formatted strings as attributes. * Should be used together with the `plainDate` decorator. */ export declare const plainDateConverter: ComplexAttributeConverter; export interface SbbPlainDateConfiguration { /** * Provide a function that will be called if the internal value is null. * @param dataAdapter The current date adapter. * @returns A date object. */ fallback?: (dataAdapter: DateAdapter) => T; } /** * Decorator that tries to deserialize the given value to a date object * and adapts the getter to only return a copy of the internal value, * in order to avoid outside manipulation of date objects. */ export declare const plainDate: , V>(config?: SbbPlainDateConfiguration) => (target: ClassAccessorDecoratorTarget, context: ClassAccessorDecoratorContext) => any; //# sourceMappingURL=plain-date.d.ts.map