import { AbstractWraplet, Core } from "wraplet"; import { editor } from "monaco-editor"; import { Editor } from "./types/Editor"; import { PreviewValue } from "./types/PreviewValue"; export type MonacoEditorOptions = { optionsAttribute?: string; monacoOptions?: editor.IStandaloneEditorConstructionOptions; location?: "head" | "body"; priority?: number; trimDefaultValue?: boolean; tagAttributes?: Record; }; export declare class MonacoEditor extends AbstractWraplet<{}, HTMLElement> implements Editor { private editor; private options; constructor(core: Core<{}, HTMLElement>, options?: MonacoEditorOptions); getValue(): Promise; /** * Additional validation. */ private validateOptions; private getTSValueAsJS; private getLanguage; private trimDefaultValue; static create(element: HTMLElement, options?: MonacoEditorOptions): MonacoEditor; }