import * as monaco from 'monaco-editor'; import * as React from 'react'; export declare type BuiltinTheme = monaco.editor.BuiltinTheme | 'sourcegraph-dark'; interface Props { /** The contents of the document. */ value?: string; /** The language of the document. */ language?: string; /** The DOM element ID to use when rendering the component. Use for a11y, not DOM manipulation. */ id?: string; /** The height (in px) of the Monaco editor. */ height: number; /** The color theme for the editor. */ theme: BuiltinTheme; /** Called when the editor has mounted. */ editorWillMount: (editor: typeof monaco) => void; /** Options for the editor. */ options: monaco.editor.IEditorOptions; } interface State { } export declare class MonacoEditor extends React.PureComponent { private editor; private setRef; componentWillReceiveProps(nextProps: Props): void; componentWillUnmount(): void; render(): JSX.Element | null; } export {}; //# sourceMappingURL=MonacoEditor.d.ts.map