import { ElementRef, EventEmitter, OnInit, Renderer2 } from '@angular/core'; /** * Remaining Characters directive for showing a characters remaining count and triggering warning and error * behavior when passing specified thresholds. When the charsRemainingWarning threshold is passed, * the chars-warn-remaining-pf css class is applied to the charsRemainingElement, which by * default, turns the remaining count number red. By default, characters may be entered into * the text field after the charsMaxLimit limit has been reached, the remaining count number will become a * negative value. Setting the blockInputAtMaxLimit to true, will block additional input into the * text field after the max has been reached; additionally a right-click 'paste' will only paste characters until the * maximum character limit is reached. * * Usage: *
 * // Individual module import
 * import { RemainingCharsCountModule } from 'patternfly-ng/remainingCharsCount';
 * // Or
 * import { RemainingCharsCountModule } from 'patternfly-ng';
 *
 * @NgModule({
 *   imports: [RemainingCharsCountModule,...]
 * })
 * export class AppModule(){}
 * 
*/ export declare class RemainingCharsCountDirective implements OnInit { private el; private renderer; /** * If true, no more characters can be entered into the text field */ blockInputAtMaxLimit: boolean; /** * Number representing the maximum number of characters allowed. Default is 100 */ charsMaxLimit: number; /** * The ElementRef used to display the characters remaining count */ charsRemainingElement: any; /** * Number of remaining characters to warn upon. Default is 5 */ charsRemainingWarning: number; /** * The event emitted when a remaining characters is over max limit */ onOverCharsMaxLimit: EventEmitter<{}>; /** * The event emitted when a remaining characters is under max limit */ onUnderCharsMaxLimit: EventEmitter<{}>; private remainingChars; /** * Default constructor * * @param el The element reference for this component * @param renderer The renderer service */ constructor(el: ElementRef, renderer: Renderer2); /** * Setup component configuration upon initialization */ ngOnInit(): void; /** * Handle key events * * Note: Using the keyup event Vs keypress to include backspace/delete * * @param $event A KeyboardEvent object */ private handleKeypress; /** * Helper to check remaining characters */ private checkRemainingChars; /** * Emit remaining characters event */ private emitRemainingCharsEvent; /** * Set remaining characters */ private setRemainingChars; /** * Set remaining characters warning */ private setRemainingCharsWarning; }