import { AfterViewInit, EventEmitter, OnInit, QueryList, TemplateRef } from '@angular/core'; import { CodemirrorComponent } from '@ctrl/ngx-codemirror'; import { CodeEditorModel, IListItemOption } from '../../../constants'; import * as i0 from "@angular/core"; export declare class TqlCodeEditorComponent implements OnInit, AfterViewInit { _closeActions: IListItemOption[]; _actions: IListItemOption[]; set actions(v: IListItemOption[]); get actions(): IListItemOption[]; get moreActions(): IListItemOption[]; hideDefaultActions: boolean; editors: QueryList; saveAction: ($event: CodeEditorModel) => Promise; showTabOnly: boolean; _data: CodeEditorModel[]; /** * list of code editors * @param v */ dataChange: EventEmitter; set data(v: CodeEditorModel[]); get data(): CodeEditorModel[]; hasHeading: boolean; headingClassName: string; multiple: boolean; hintMenuTemplate: TemplateRef; scrollToBottomWhenUpdate: boolean; onChange: EventEmitter; onInit: EventEmitter; _readOnly: boolean; /** * set readonly * @param v */ set readOnly(v: boolean); get readOnly(): boolean; _selected: CodeEditorModel | null; set selected(value: CodeEditorModel | null); get selected(): CodeEditorModel | null; questionIcon: IListItemOption; saveIcon: IListItemOption; formatIcon: IListItemOption; moreIcon: IListItemOption; closeIcon: IListItemOption; unsavedIcon: IListItemOption; _mode: string; set mode(v: string); constructor(); ngOnInit(): void; ngAfterViewInit(): void; private setReadOnlyForTabs; massageEditor(): void; codemirrorChange(text: string): void; onSelectTab(item: CodeEditorModel): void; onFormat(): void; emitEvent(eventClass: TqlCodeEditorComponent.EventType): void; onCloseItems(codeEditorModels: CodeEditorModel[]): void; onCloseItemOthers(codeEditorModel: CodeEditorModel | null): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare namespace TqlCodeEditorComponent { type EventType = new () => IEvent; interface IEvent { editor: CodeEditorModel; } class CloseEvent implements IEvent { editor: CodeEditorModel; } class SaveEvent implements IEvent { editor: CodeEditorModel; } class EditorChangeEvent implements IEvent { editor: CodeEditorModel; } class ContentChangeEvent implements IEvent { editor: CodeEditorModel; } }