import * as i0 from '@angular/core'; import { ElementRef, EventEmitter, ExistingProvider, OnInit, AfterViewInit, OnChanges, TemplateRef, QueryList, SimpleChanges } from '@angular/core'; import { Direction } from '@angular/cdk/bidi'; import { OnChangeType, OnTouchedType, NzSafeAny, NzStatus, NzVariant, NgClassInterface, NzValidateStatus } from 'ng-zorro-antd/core/types'; import { ControlValueAccessor } from '@angular/forms'; /** * @deprecated Internally used, will be removed in v21, please do not use it. */ declare const NZ_MENTION_TRIGGER_ACCESSOR: ExistingProvider; declare class NzMentionTriggerDirective implements ControlValueAccessor { readonly elementRef: ElementRef; private readonly ngZone; private readonly cdr; private readonly destroyRef; readonly onFocusin: EventEmitter; readonly onBlur: EventEmitter; readonly onInput: EventEmitter; readonly onKeydown: EventEmitter; readonly onClick: EventEmitter; readonly value: i0.WritableSignal; readonly disabled: i0.WritableSignal; constructor(); completeEvents(): void; focus(caretPos?: number | null): void; insertMention(mention: Mention): void; clear(): void; writeValue(value: string): void; onChange: OnChangeType; onTouched: OnTouchedType; registerOnChange(fn: (value: string) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; private setupEventListener; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface MentionOnSearchTypes { value: string; prefix: string; } interface Mention { startPos: number; endPos: number; mention: string; } type MentionPlacement = 'top' | 'bottom'; declare class NzMentionComponent implements OnInit, AfterViewInit, OnChanges { private ngZone; private directionality; private cdr; private injector; private viewContainerRef; private elementRef; private renderer; private destroyRef; nzValueWith: (value: NzSafeAny) => string; nzPrefix: string | string[]; nzLoading: boolean; nzNotFoundContent: string; nzPlacement: MentionPlacement; nzSuggestions: NzSafeAny[]; nzStatus: NzStatus; nzVariant: NzVariant; nzAllowClear: boolean; nzClearIcon: TemplateRef | null; readonly nzOnSelect: EventEmitter; readonly nzOnSearchChange: EventEmitter; readonly nzOnClear: EventEmitter; suggestionsTemp?: TemplateRef; items: QueryList; set suggestionChild(value: TemplateRef<{ $implicit: NzSafeAny; }>); readonly trigger: i0.Signal; isOpen: boolean; filteredSuggestions: string[]; suggestionTemplate: TemplateRef<{ $implicit: NzSafeAny; }> | null; activeIndex: number; dir: Direction; prefixCls: string; statusCls: NgClassInterface; status: NzValidateStatus; hasFeedback: boolean; readonly focused: i0.WritableSignal; readonly disabled: i0.Signal; readonly hasValue: i0.Signal; private previousValue; private cursorMention; private cursorMentionStart?; private cursorMentionEnd?; private overlayRef; private portal?; private positionStrategy; private overlayOutsideClickSubscription; private document; private get triggerNativeElement(); private get focusItemElement(); private nzFormStatusService; private nzFormNoStatusService; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; closeDropdown(): void; openDropdown(): void; getMentions(): string[]; selectSuggestion(suggestion: string | {}): void; clear(): void; private handleInput; private handleKeydown; private handleClick; private bindTriggerEvents; private suggestionsFilter; private resetDropdown; private setNextItemActive; private setPreviousItemActive; private scrollToFocusItem; private canOpen; private resetCursorMention; private updatePositions; private subscribeOverlayOutsideClick; private attachOverlay; private getOverlayPosition; private setStatusStyles; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_nzLoading: unknown; static ngAcceptInputType_nzAllowClear: unknown; } declare class NzMentionSuggestionDirective { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NzMentionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NZ_MENTION_TRIGGER_ACCESSOR, NzMentionComponent, NzMentionModule, NzMentionSuggestionDirective, NzMentionTriggerDirective }; export type { Mention, MentionOnSearchTypes, MentionPlacement };