import { EventEmitter, TemplateRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { NumberChange } from './number-change.class'; export declare class Number implements ControlValueAccessor { /** * Variable used for creating unique ids for number input components. */ static numberCount: number; containerClass: boolean; /** * Set to `true` for a disabled number input. */ disabled: boolean; /** * Set to `true` for a loading number component. */ skeleton: boolean; /** * Set to `true` for an invalid number component. */ invalid: boolean; /** * Set to `true` for a valid number component. */ valid: boolean; /** * The unique id for the number component. */ id: string; /** * Reflects the required attribute of the `input` element. */ required: boolean; /** * Sets the value attribute on the `input` element. */ value: number; /** * Sets the min attribute on the `input` element. */ min: any; /** * Sets the max attribute on the `input` element. */ max: any; /** * Sets the text inside the `label` tag. */ label: string | TemplateRef; /** * Sets the a prefix for the input wrapper. */ prefix: string | TemplateRef; /** * Sets the optional helper text. */ helperText: string | TemplateRef; /** * Sets the invalid text. */ invalidText: string | TemplateRef; /** * Emits event notifying other classes when a change in state occurs in the input. */ change: EventEmitter; /** * Creates an instance of `Number`. */ constructor(); /** * This is the initial value set to the component * @param value The input value. */ writeValue(value: any): void; /** * Sets a method in order to propagate changes back to the form. */ registerOnChange(fn: any): void; /** * Registers a callback to be triggered when the control has been touched. * @param fn Callback to be triggered when the number input is touched. */ registerOnTouched(fn: any): void; /** * Sets the disabled state through the model */ setDisabledState(isDisabled: boolean): void; /** * Called when number input is blurred. Needed to properly implement `ControlValueAccessor`. */ onTouched: () => any; /** * Method set in `registerOnChange` to propagate changes back to the form. */ propagateChange: (_: any) => void; /** * Adds 1 to the current `value`. */ onIncrement(): void; /** * Subtracts 1 to the current `value`. */ onDecrement(): void; /** * Creates a class of `NumberChange` to emit the change in the `Number`. */ emitChangeEvent(): void; onNumberInputChange(event: any): void; isTemplate(value: any): boolean; }