import type { ChangeEvent, FocusEvent, KeyboardEvent } from "react";
import type { DateTimeInputMode } from "../lib";
interface UseDateTimeSegmentsOptions {
    value: Date | null | undefined;
    onChange: (value: Date | null) => void;
    onClearError?: () => void;
    disabled?: boolean;
    minDate?: Date;
    maxDate?: Date;
    mode?: DateTimeInputMode;
}
/**
 * Управляет сегментным вводом фиксированного формата даты-времени или только времени.
 */
export declare function useDateTimeSegments({ value, onChange, onClearError, disabled, minDate, maxDate, mode }: UseDateTimeSegmentsOptions): {
    segments: import("@ryuzaki13/react-foundation-lib/date-segments").DateMaskSegment[];
    segmentValues: Map<number, string>;
    registerRef: (index: number) => (element: HTMLInputElement | null) => void;
    handleInput: (index: number) => (event: ChangeEvent<HTMLInputElement>) => void;
    handleKeyDown: (index: number) => (event: KeyboardEvent<HTMLInputElement>) => void;
    handleFocus: () => (event: FocusEvent<HTMLInputElement>) => void;
    handleContainerFocus: () => void;
    handleContainerBlur: () => void;
    focusFirstEmpty: () => void;
};
export {};
//# sourceMappingURL=useDateTimeSegments.d.ts.map