import { srv } from '../../core'; import { default as Completer } from './code-editor-completer'; import { default as Annotator } from './code-editor-annotator'; import { default as Selection } from './code-editor-selection'; import { default as Shortcuts } from './code-editor-shortcuts'; import { default as Params } from './code-editor-params'; export interface AceEditorOptions { mode?: string; theme?: string; enableMultiselect?: boolean; showGutter?: boolean; highlightActiveLine?: boolean; focus?: boolean; } export interface CodeEditorOptions { ace?: AceEditorOptions; focus?: boolean; fitContent?: boolean; } export default class CodeEditor extends srv.eventEmitter.EventEmitter { private readonly element; private readonly ace; private valid; private locked; private readonly completer; private readonly annotator; private readonly selection; private readonly shortcuts; private readonly params; constructor(scope: any, element: any, text: any, options?: CodeEditorOptions); private init; isValid(): boolean; getCompleter(): Completer; getAnnotator(): Annotator; getSelection(): Selection; getShortcuts(): Shortcuts; getParams(): Params; getValue(): string; getLockedRange(): [number, number][]; setReadonly(readonly: boolean): CodeEditor; setLiveAutocompletion(value: boolean): this; setValid(valid: boolean): CodeEditor; setValue(value: any): CodeEditor; lockLines(range: [number, number][]): CodeEditor; unlockLines(): CodeEditor; resize(): CodeEditor; focus(): CodeEditor; destroy(): CodeEditor; }