/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, ExistingProvider, NgZone, OnDestroy } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { NzDestroyService } from 'ng-zorro-antd/core/services'; import { OnChangeType, OnTouchedType } from 'ng-zorro-antd/core/types'; import { Mention } from './mention.component'; import { NzMentionService } from './mention.service'; import * as i0 from "@angular/core"; export declare const NZ_MENTION_TRIGGER_ACCESSOR: ExistingProvider; export declare class NzMentionTriggerDirective implements ControlValueAccessor, OnDestroy, AfterViewInit { el: ElementRef; private ngZone; private ref; private destroy$; private nzMentionService; onChange: OnChangeType; onTouched: OnTouchedType; readonly onFocusin: EventEmitter; readonly onBlur: EventEmitter; readonly onInput: EventEmitter; readonly onKeydown: EventEmitter; readonly onClick: EventEmitter; value?: string; constructor(el: ElementRef, ngZone: NgZone, ref: ChangeDetectorRef, destroy$: NzDestroyService, nzMentionService: NzMentionService); completeEvents(): void; focus(caretPos?: number | null): void; insertMention(mention: Mention): void; writeValue(value: string): void; registerOnChange(fn: (value: string) => void): void; registerOnTouched(fn: () => void): void; ngAfterViewInit(): void; ngOnDestroy(): void; private setupEventListener; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }