import { ElementRef, OnChanges, Provider, Renderer2, SimpleChanges } from "@angular/core"; import { MaskedInputDirective, TextMaskConfig as Ng2TextMaskConfig } from "angular2-text-mask"; import { MaskArray } from "text-mask-core"; import { StarkTimestampMaskConfig } from "./timestamp-mask-config.intf"; import * as i0 from "@angular/core"; /** * @ignore */ export declare const STARK_TIMESTAMP_MASK_VALUE_ACCESSOR: Provider; /** * Directive to display a timestamp 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 Number 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 to the directive will disable the mask. * * @example * * * * * * */ export declare class StarkTimestampMaskDirective extends MaskedInputDirective implements OnChanges { /** * Default configuration. * It will be merged with the configuration passed to the directive. */ private readonly defaultTimestampMaskConfig; /** * Configuration object for the mask to be displayed in the input field. */ maskConfig?: StarkTimestampMaskConfig; /** * @ignore */ elementRef: ElementRef; /** * 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?: StarkTimestampMaskConfig): Ng2TextMaskConfig; /** * Construct a valid Mask out of the given timestamp format string * @param format - The timestamp format string */ convertFormatIntoMask(format: string): MaskArray; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }