import { ElementRef, OnChanges, Provider, Renderer2, SimpleChanges } from "@angular/core";
import { MaskedInputDirective, TextMaskConfig as Ng2TextMaskConfig } from "angular2-text-mask";
import { StarkTextMaskConfig } from "./text-mask-config.intf";
import * as i0 from "@angular/core";
/**
* @ignore
*/
export declare const STARK_TEXT_MASK_VALUE_ACCESSOR: Provider;
/**
* Directive to display a mask in input elements. This directive internally uses the {@link https://github.com/text-mask/text-mask/tree/master/core|text-mask-core} library
* to provide the input mask functionality.
*
* **`IMPORTANT:`** Currently the Text Mask supports only input of type text, tel, url, password, and search.
* Due to a limitation in browser API, other input types, such as email or number, cannot be supported.
*
* ### Disabling the mask
* Passing an `undefined` value as config or a config object with `mask: false` will disable the mask.
*
* @example
*
*
*
*
*
*
*/
export declare class StarkTextMaskDirective extends MaskedInputDirective implements OnChanges {
/**
* Configuration object for the mask to be displayed in the input field.
*/
maskConfig: StarkTextMaskConfig;
/**
* @ignore
*/
private elementRef;
/**
* Default configuration.
* It will be merged with the configuration passed to the directive.
*/
private readonly defaultTextMaskConfig;
/**
* Class constructor
* @param _renderer - Angular `Renderer2` wrapper for DOM manipulations.
* @param _elementRef - Reference to the DOM element where this directive is applied to.
* @param _compositionMode - Injected token to control if form directives buffer IME input until the "compositionend" event occurs.
*/
constructor(_renderer: Renderer2, _elementRef: ElementRef, _compositionMode: boolean);
/**
* Component lifecycle hook
* @param changes - Contains the changed properties
*/
ngOnChanges(changes: SimpleChanges): void;
/**
* Create a valid configuration to be passed to the MaskedInputDirective
* @param maskConfig - The provided configuration via the directive's input
*/
normalizeMaskConfig(maskConfig: StarkTextMaskConfig): Ng2TextMaskConfig;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵdir: i0.ɵɵDirectiveDeclaration;
}