import * as _odx_angular_utils from '@odx/angular/utils'; import * as _angular_core from '@angular/core'; import { NgxMaskDirective, NgxMaskConfig } from 'ngx-mask'; type InputDateOrder = (typeof InputDateOrder)[keyof typeof InputDateOrder]; declare const InputDateOrder: { DMY: string; MDY: string; YMD: string; }; type DateInputPattern = typeof DateInputFormat | typeof DateInputMask; declare const DateInputFormat: { DAYS: string; MONTH: string; YEAR: string; }; declare const DateInputMask: { DAYS: string; MONTH: string; YEAR: string; }; interface DateConfig { /** * Date's order ('DMY' | 'MDY' | 'YMD'). * @default InputDateOrder.DMY */ inputDateOrder: InputDateOrder; /** * Single-character date's separator (dot, slash etc.). * @default '.' */ inputDateSeparator: string; } /** * Tools for injecting and providing the date configuration with default configuration for the date. * * @example * // Providing custom date configuration. * ```ts * @Component({ * providers: [provideDateConfig({ inputDateOrder: InputDateOrder.MDY, inputDateSeparator: '/'})] * }) * export class MyComponent {} * * // Injecting the date configuration. * ```ts * @Component({}) * export class MyComponent { * constructor(@Inject(injectDateConfig()) private readonly dateConfig: DateConfig) {} * } * ``` */ declare const DateConfig: _angular_core.InjectionToken>; declare const DateDefaultConfig: { inputDateOrder: string; inputDateSeparator: string; }; declare const injectDateConfig: () => { inputDateOrder: string; inputDateSeparator: string; }; declare const provideDateConfig: >>(config: _odx_angular_utils.ConfigProvider, D>) => _angular_core.FactoryProvider | _angular_core.ValueProvider; /** @internal */ declare function getDateInputFormat(config: DateConfig): string; /** @internal */ declare function getDateInputMask(config: DateConfig): string; /** @internal */ declare function getDateInputValueAsDate(config: DateConfig, value: string): Date | null; declare function initNgxMask(ngxMask: NgxMaskDirective | undefined, mask: string): void; declare const ngxMaskProviderConfig: Partial; export { DateConfig, DateDefaultConfig, DateInputFormat, DateInputMask, InputDateOrder, getDateInputFormat, getDateInputMask, getDateInputValueAsDate, initNgxMask, injectDateConfig, ngxMaskProviderConfig, provideDateConfig }; export type { DateInputPattern };