import { type ChangeEvent, type ClipboardEvent, type KeyboardEvent } from 'react';
import { type CodeFieldInputType } from '../../types';
export declare const useCodeState: (initialValue: string | undefined, codeLength: number, setFocusIndexNext: (index: number) => void, setFocusIndexPrevious: (index: number) => void, setBlur: () => void, onFieldChange?: ((value: string) => void) | undefined, onComplete?: ((value: string) => void) | undefined) => {
    codeValue: CodeFieldInputType[];
    onKeyUp: (e: KeyboardEvent<HTMLInputElement>, index: number) => void;
    onKeyDown: (e: KeyboardEvent<HTMLInputElement>, index: number) => void;
    onChange: (e: ChangeEvent<HTMLInputElement>, index: number) => void;
    onPaste: (event: ClipboardEvent<HTMLInputElement>) => void;
    clearCodeValue: () => void;
};
