import React from "react";
interface UseMaskedSegmentsOptions {
    mask: string;
    value: Date | undefined;
    onChange: (date: Date) => void;
    onClearError?: () => void;
    disabled?: boolean;
}
export declare function useMaskedSegments({ mask, value, onChange, onClearError, disabled }: UseMaskedSegmentsOptions): {
    segments: import("./maskParser").Segment[];
    segmentValues: Map<number, string>;
    isFocused: boolean;
    registerRef: (index: number) => (el: HTMLInputElement | null) => void;
    handleInput: (index: number) => (e: React.ChangeEvent<HTMLInputElement>) => void;
    handleKeyDown: (index: number) => (e: React.KeyboardEvent<HTMLInputElement>) => void;
    handleFocus: () => (e: React.FocusEvent<HTMLInputElement>) => void;
    handleContainerFocus: () => void;
    handleContainerBlur: () => void;
    focusFirstEmpty: () => void;
};
export {};
//# sourceMappingURL=useMaskedSegments.d.ts.map