import { Ref } from 'vue'; export type UsePasswordInputStateProps = { /** * Callback when value updates. */ onChange?: (value: string) => void; /** * Callback when `Enter` is pressed. First argument is a value of the input. */ onSubmit?: (value: string) => void; }; export type PasswordInputState = { /** * Previous value. */ previousValue: Ref; /** * Current input value. */ value: Ref; /** * Current cursor position. */ cursorOffset: Ref; /** * Move cursor to the left. */ moveCursorLeft: () => void; /** * Move cursor to the right. */ moveCursorRight: () => void; /** * Insert text. */ insert: (text: string) => void; /** * Delete character. */ delete: () => void; /** * Submit input value. */ submit: () => void; }; export declare const usePasswordInputState: ({ onChange, onSubmit, }?: UsePasswordInputStateProps) => PasswordInputState; //# sourceMappingURL=use-password-input-state.d.ts.map