import { Clock } from "./clock"; import { DateFactory, DateFactoryParts, Options } from "./core"; export declare function parse(value: string, locale: string, options?: string | Options): Date; export declare function compositeDateFactory(...factories: DateFactory[]): DateFactory; export declare class InferYearViaWeekday implements DateFactory { private clock; private constructor(); static create(clock?: Clock): DateFactory; create({ year, month, day, weekday }: DateFactoryParts): Date; private candidates; } export declare enum InferDirection { Before = -1, After = 1 } export declare class InferYear implements DateFactory { private direction; private readonly date; private constructor(); static before(date: Date): DateFactory; static after(date: Date): DateFactory; static sliding(clock?: Clock): DateFactory; create({ year, month, day }: DateFactoryParts): Date; private calculateYearIncrement; private calculateYear; } export declare class Pivot { /*** * @deprecated Please use InferYear.before */ static on(pivotYear: number): DateFactory; /*** * @deprecated Please use InferYear.sliding */ static sliding(clock?: Clock): DateFactory; } /*** * @deprecated Please use InferYear */ export declare class SmartDate implements DateFactory { private clock; constructor(clock?: Clock); create(parts: DateFactoryParts): Date; }