import { IMask, useIMask } from 'react-imask'; import { TextFieldPropForm } from '../TextField'; import { DateRange } from '../../utils/types/Date'; import { TimeOptions, TimeUnitOptions } from '../DateTime'; import { DatePickerPropType } from './types'; export declare const datePickerPropSeparatorDefault = "."; export declare const datePickerPropFormatTypeDate = "dd.MM.yyyy"; export declare const datePickerPropFormatTypeTime = "HH:mm:ss"; export declare const datePickerPropFormatTypeDateTime = "dd.MM.yyyy HH:mm:ss"; export declare const datePickerPropFormatTypeYear = "yyyy"; export declare const datePickerPropFormatTypeMonth = "MM.yyyy"; export declare const normalizeRangeValue: (dateRange: DateRange) => DateRange; export declare const getTimeOptionsByFormat: (format: string, timeOptions?: TimeOptions) => { hours: TimeUnitOptions | undefined; minutes: TimeUnitOptions | undefined; seconds: TimeUnitOptions | undefined; }; export declare const adaptFormat: (format: string, timeOptions?: TimeOptions) => string; export declare const placeholderByFormat: (format: string) => string; type MaskBlock = { mask: typeof IMask.MaskedRange; from: number; to: number; }; type MaskBlocks = Partial<{ dd: MaskBlock; MM: MaskBlock; yyyy: MaskBlock; HH: MaskBlock; mm: MaskBlock; ss: MaskBlock; }>; export declare const getMaskBlocks: ({ includeDate, includeTime, }?: { includeDate?: boolean | undefined; includeTime?: boolean | undefined; }) => MaskBlocks; export declare const getFormForStart: (form: TextFieldPropForm) => "default" | "defaultClear" | "defaultBrick" | "brick" | "brickDefault" | "brickClear" | "brickRound" | "round" | "roundClear" | "roundBrick" | "clearRound" | "clearDefault" | "clearBrick" | "clearClear"; export declare const getFormForEnd: (form: TextFieldPropForm) => "default" | "defaultClear" | "defaultBrick" | "brick" | "brickDefault" | "brickClear" | "brickRound" | "round" | "roundClear" | "roundBrick" | "clearRound" | "clearDefault" | "clearBrick" | "clearClear"; export declare const getPartDate: (formatArray: string[], stringArray: string[], marker: string) => string | undefined; export declare const getParts: (format: string, separator: string, withTime?: boolean) => string[]; export declare const getPartsDate: (value: string, format: string, separator: string, withTime: boolean, markers: string[]) => (string | undefined)[]; export declare const isTypeWithTime: (type: DatePickerPropType) => boolean; export declare const getFieldName: (name: [string?, string?] | string | undefined, rangeIndex: 0 | 1) => string | undefined; export declare const getDropdownZIndex: (style?: React.CSSProperties) => number | undefined; type DatePickerFieldTypeDatePropOnChange = (value: Date | null, props: { e: Event; }) => void; export declare const useStringValue: (value: Date | undefined | null, formatProp: string, separator: string, onChangeRef: React.MutableRefObject, imaskProps: ReturnType>) => import("react").MouseEventHandler; export declare const isValidTimeByTimeOptions: (date: Date, timeOptions?: TimeOptions) => boolean; export {};