import { OnChanges, SimpleChanges, OnInit, EventEmitter } from "@angular/core"; import { ControlValueAccessor } from "@angular/forms"; declare type Value = number | string; /** Textbox is a component that allows user to add or edit text */ export declare class TextboxComponent implements ControlValueAccessor, OnInit, OnChanges { /** Property sets to check if textbox is allowed to auto complete */ autocomplete?: string; /** Element class name */ className?: string; /** Property sets whether textbox is disabled */ disabled?: boolean; /** Error message of textbox */ error?: string; /** Property sets whether textbox is focused */ focus?: boolean; /** Element ID */ id?: string; /** Element label */ label?: string; /** Element left icon */ leftIcon?: string; /** Element left text */ leftText?: string; /** Element left title */ leftTitle?: string; /** Maximum allowed length for input */ maxLength?: number; /** Minimum allowed length for input */ minLength?: number; /** Elemenet name */ name: string; /** Element pattern */ pattern?: string; /** Element placeholder */ placeholder?: string; /** Property sets whether textbox is readonly */ readonly?: boolean; /** Property sets whether textbox is required */ required?: boolean; /** Element right icon */ rightIcon?: string; /** Element right text */ rightText?: string; /** Element right title */ rightTitle?: string; /** Input type */ type?: string; /** Property sets whether textbox is set to success theme */ success?: boolean; /** Property sets whether error message should be shown */ showErrorMessage?: boolean; /** Callback when textbox is defocused */ onBlur: EventEmitter; /** Callback when textbox's value is changed */ onChange: EventEmitter; /** Callback when textbox is focused */ onFocus: EventEmitter; /** Callback when key is pressed */ onKeyDown: EventEmitter; /** Callback when a key that produces a character value is pressed down */ onKeyPress: EventEmitter; /** Callback when key is released */ onKeyUp: EventEmitter; /** Callback when left icon/text button is clicked */ onLeftClick: EventEmitter; /** Callback when right icon/text button is clicked */ onRightClick: EventEmitter; /** Calback when a search is initiated using element of type="search" */ onSearch: EventEmitter; private _value; private onTouchedCallback; private onChangeCallback; internalId: string; displayError: boolean; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; get value(): Value; set value(v: Value); handleBlur(e: MouseEvent): void; handleKeyUp(e: KeyboardEvent): void; handleKeyDown(e: KeyboardEvent): void; handleFocus(e: MouseEvent): void; handleKeyPress(e: KeyboardEvent): void; handleLeftIconClick(e: MouseEvent): void; handleRightIconClick(e: MouseEvent): void; handleSearch(e: KeyboardEvent): void; writeValue(val: Value): void; registerOnChange(fn: () => void): void; registerOnTouched(fn: () => void): void; } export {};