import { Ref, ComputedRef } from 'vue'; export type UseEmailInputStateProps = { /** * Initial value to display in a text input. */ defaultValue?: string; /** * Domains of email providers to auto complete. * * @default ["aol.com", "gmail.com", "yahoo.com", "hotmail.com", "live.com", "outlook.com", "icloud.com", "hey.com"] */ domains?: string[]; /** * 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 EmailInputState = { /** * Previous value. */ previousValue: Ref; /** * Current input value. */ value: Ref; /** * Current cursor position. */ cursorOffset: Ref; /** * Suggested auto completion. */ suggestion: ComputedRef; /** * 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 useEmailInputState: ({ defaultValue, domains, onChange, onSubmit, }?: UseEmailInputStateProps) => EmailInputState; //# sourceMappingURL=use-email-input-state.d.ts.map