import { type IUiConfigEditorProps } from "./types.js"; /** * A config editor: a CodeMirror source editor with syntax highlighting, line numbers and a lint * gutter, plus a toolbar to re-format the text and — when more than one language is offered — to * read and edit the same value as either JSON or YAML. * * The primary language is always the value in and the value out. Any other offered language is a * convenience projection converted on the fly, so a caller never has to know which language the user * happens to be looking at. A single-language editor never converts at all: what is typed is what is * emitted, byte for byte, so YAML comments and formatting the caller cares about survive. * * Switching language re-emits the value in canonical form, which is what makes switching to YAML and * back re-format the JSON. The canonical form matches the `JSON.stringify(value, null, 4)` that * callers conventionally seed the field with, so a switch on an untouched value is a no-op rather * than something that marks a form dirty. * * @internal */ export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels, diagnostics, renderContextMenu, label, placeholder, readOnly, disabled, rows, dataTestId, editorRef, }: IUiConfigEditorProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=UiConfigEditor.d.ts.map