import { ElementRef, OnChanges, Provider, Renderer2 } from "@angular/core";
import { ControlValueAccessor } from "@angular/forms";
import * as i0 from "@angular/core";
/**
* The constant that contains the command for {@link StarkTransformInputDirective} to transform the input value in an element to uppercase.
*/
export declare const UPPERCASE: "uppercase";
/**
* The constant that contains the command for {@link StarkTransformInputDirective} to transform the input value in an element to lowercase.
*/
export declare const LOWERCASE: "lowercase";
/**
* Type of transformations that can be done via the {@link StarkTransformInputDirective}
*/
export type StarkInputTransformationType = typeof UPPERCASE | typeof LOWERCASE | ((value: any) => any);
/**
* Provider for {@link StarkTransformInputDirective}
*/
export declare const STARK_TRANSFORM_INPUT_PROVIDER: Provider;
/**
* Directive to transform the input value of an input or textarea. It sits between the native element and the ngControl (ngModel/formControl) so observers are triggered only once.
* This directive will not affect changes applied trough code, only user input will be transformed. This means i.a. initial values are not transformed.
*
* It is possible to pass 'uppercase', 'lowercase' or a custom function to transform the value. This directive works if the input is controlled or not.
* @example
*
* // OR
*
* // OR
*
*/
export declare class StarkTransformInputDirective implements ControlValueAccessor, OnChanges {
private _renderer;
private _elementRef;
/**
* @ignore
* Internal property for holding the transformation function
*/
_transformation: (value: any) => any;
/**
* Transformation to be done on the input value
*/
set transformation(transformation: StarkInputTransformationType);
/**
* @ignore
* The registered callback function called when an input event occurs on the input element.
*/
private _onChange;
/**
* @ignore
* The registered callback function called when a blur event occurs on the input element.
*/
_onTouched: () => void;
/**
* Class constructor
* @param _renderer - Angular renderer
* @param _elementRef - Reference to the DOM element where this directive is applied to.
*/
constructor(_renderer: Renderer2, _elementRef: ElementRef);
/**
* Angular life cycle hook
*/
ngOnChanges(): void;
/**
* Sets the "value" property on the input element.
*
* @param value - The checked value
*/
writeValue(value: any): void;
/**
* Registers a function called when the control value changes.
*
* @param fn - The callback function
*/
registerOnChange(fn: (_: any) => void): void;
/**
* Registers a function called when the control is touched.
*
* @param fn - The callback function
*/
registerOnTouched(fn: () => void): void;
/**
* Sets the "disabled" property on the input element.
*
* @param isDisabled - The disabled value
*/
setDisabledState(isDisabled: boolean): void;
/**
* Listens to input event from the native element
* @param event - The handled event
*/
_onInput(event: Event): void;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}