import * as _covalent_core_common from '@covalent/core/common'; import * as i0 from '@angular/core'; import { ChangeDetectorRef, OnInit, OnDestroy, ElementRef, EventEmitter } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Observable } from 'rxjs'; import { editor } from 'monaco-editor/esm/vs/editor/editor.api'; declare class TdCodeEditorBase { _changeDetectorRef: ChangeDetectorRef; constructor(_changeDetectorRef: ChangeDetectorRef); } declare const _TdCodeEditorMixinBase: (new (...args: any[]) => _covalent_core_common.IControlValueAccessor) & (new (...args: any[]) => _covalent_core_common.ICanDisable) & typeof TdCodeEditorBase; declare class TdCodeEditorComponent extends _TdCodeEditorMixinBase implements OnInit, ControlValueAccessor, OnDestroy { private _elementRef; private _ngZone; private platformId; private _destroy; private _widthSubject; private _heightSubject; private _editorStyle; private _value; private _theme; private _language; private _subject; private _editorInnerContainer; private _editor; private _fromEditor; private _componentInitialized; private _editorOptions; private _isFullScreen; private _keycode; private _registeredLanguagesStyles; private _disposables; _editorContainer: ElementRef; /** * editorInitialized: function($event) * Event emitted when editor is first initialized */ editorInitialized: EventEmitter; /** * editorConfigurationChanged: function($event) * Event emitted when editor's configuration changes */ editorConfigurationChanged: EventEmitter; /** * editorLanguageChanged: function($event) * Event emitted when editor's Language changes */ editorLanguageChanged: EventEmitter; /** * editorValueChange: function($event) * Event emitted any time something changes the editor value */ editorValueChange: EventEmitter; propagateChange: (_: any) => () => void; /** * value?: string */ set value(value: string); get value(): string; applyValue(): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; /** * getEditorContent?: function * Returns the content within the editor */ getValue(): Observable; /** * language?: string * language used in editor */ set language(language: string); get language(): string; applyLanguage(): void; /** * registerLanguage?: function * Registers a custom Language within the editor */ registerLanguage(language: any): void; /** * style?: string * css style of the editor on the page */ set editorStyle(editorStyle: string); get editorStyle(): string; applyStyle(): void; /** * theme?: string * Theme to be applied to editor */ set theme(theme: string); get theme(): string; /** * fullScreenKeyBinding?: number * See here for key bindings https://microsoft.github.io/monaco-editor/api/enums/keycode.html * Sets the KeyCode for shortcutting to Fullscreen mode */ set fullScreenKeyBinding(keycode: number[]); get fullScreenKeyBinding(): number[]; /** * editorOptions?: object * Options used on editor instantiation. Available options listed here: * https://microsoft.github.io/monaco-editor/api/interfaces/editor.ieditoroptions.html */ set editorOptions(editorOptions: any); get editorOptions(): any; /** * layout method that calls layout method of editor and instructs the editor to remeasure its container */ layout(): void; /** * Returns if in Full Screen Mode or not */ get isFullScreen(): boolean; constructor(); ngOnInit(): void; ngOnDestroy(): void; /** * showFullScreenEditor request for full screen of Code Editor based on its browser type. */ showFullScreenEditor(): void; /** * exitFullScreenEditor request to exit full screen of Code Editor based on its browser type. */ exitFullScreenEditor(): void; /** * addFullScreenModeCommand used to add the fullscreen option to the context menu */ private addFullScreenModeCommand; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated This module is deprecated and will be removed in future versions. * Please migrate to using standalone components as soon as possible. */ declare class CovalentCodeEditorModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { CovalentCodeEditorModule, TdCodeEditorComponent };