import type { JSONPatchDocument, JSONPath } from 'immutable-json-patch'; import type { Content, ContentErrors, History, HistoryItem, JSONEditorSelection, JSONParser, JSONPatchResult, OnBlur, OnChange, OnChangeMode, OnError, OnExpand, OnFocus, OnRedo, OnRenderMenuInternal, OnSelect, OnSortModal, OnTransformModal, OnUndo, TransformModalOptions, Validator } from '../../../types.js'; interface $$__sveltets_2_IsomorphicComponent = any, Events extends Record = any, Slots extends Record = any, Exports = {}, Bindings = string> { new (options: import('svelte').ComponentConstructorOptions): import('svelte').SvelteComponent & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: Props & { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; } declare const TextMode: $$__sveltets_2_IsomorphicComponent<{ readOnly: boolean; mainMenuBar: boolean; statusBar: boolean; askToFormat: boolean; externalContent: Content; externalSelection: JSONEditorSelection | undefined; history: History; indentation: number | string; tabSize: number; escapeUnicodeCharacters: boolean; maxDocumentSize: number; parser: JSONParser; validator: Validator | undefined; validationParser: JSONParser; onChange: OnChange; onChangeMode: OnChangeMode; onSelect: OnSelect; onUndo: OnUndo; onRedo: OnRedo; onError: OnError; onFocus: OnFocus; onBlur: OnBlur; onRenderMenu: OnRenderMenuInternal; onSortModal: OnSortModal; onTransformModal: OnTransformModal; focus?: () => void; collapse?: (path: JSONPath, recursive: boolean) => void; expand?: (path: JSONPath, callback?: OnExpand) => void; patch?: (operations: JSONPatchDocument) => JSONPatchResult; handlePatch?: (operations: JSONPatchDocument, emitChange: boolean) => JSONPatchResult; openTransformModal?: ({ id, rootPath, onTransform, onClose }: TransformModalOptions) => void; refresh?: () => Promise; flush?: () => void; validate?: () => ContentErrors | undefined; }, { [evt: string]: CustomEvent; }, {}, { focus: () => void; collapse: (path: JSONPath, recursive: boolean) => void; expand: (path: JSONPath, callback?: OnExpand) => void; patch: (operations: JSONPatchDocument) => JSONPatchResult; handlePatch: (operations: JSONPatchDocument, emitChange: boolean) => JSONPatchResult; openTransformModal: ({ id, rootPath, onTransform, onClose }: TransformModalOptions) => void; refresh: () => Promise; flush: () => void; validate: () => ContentErrors | undefined; }, string>; type TextMode = InstanceType; export default TextMode;