import { Component, TypeDefs } from 'intact-vue'; import { Sizes } from '../../styles/utils'; import { CommonInputHTMLAttributes, Events } from '../types'; export * from './search'; export type HTMLInputTypes = 'textarea' | 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | 'maxlength' | (string & {}); interface InputHTMLAttributes extends CommonInputHTMLAttributes { pattern?: string; dirname?: string; datalist?: string; cols?: number; wrap?: 'hard' | 'soft'; } type Value = string | number; export interface InputProps extends InputHTMLAttributes { type?: HTMLInputTypes; value?: V; defaultValue?: string | number; placeholder?: string | number; readonly?: boolean; clearable?: boolean; disabled?: boolean; size?: Sizes; rows?: string | number | 'auto' | AutoRows; autoWidth?: boolean; fluid?: boolean; width?: number | string; stackClearIcon?: boolean; frozenOnInput?: boolean; inline?: boolean; waveDisabled?: boolean; resize?: 'none' | 'vertical' | 'horizontal' | 'both'; showPassword?: boolean; flat?: boolean; showCount?: boolean; } export type AutoRows = { min?: number; max?: number; }; export interface InputEvents { clear: [MouseEvent]; focus: [FocusEvent]; blur: [FocusEvent]; input: [InputEvent]; } export interface InputBlocks { prepend: null; prefix: null; suffix: null; append: null; } export declare class Input extends Component, InputEvents, InputBlocks> { static template: string | import('intact-vue').Template; static typeDefs: Required, keyof InputHTMLAttributes>>>; static defaults: () => Partial>; static events: Events; private inputRef; private autoWidth; private frozen; private autoRows; private showPassword; private focusHook; private config; focus(): void; blur(): void; select(): void; getStringWidth(str: string): Promise; getSelectionStart(): number | null; private clear; }