import { EditorView } from '@codemirror/view'; /** * Returns the CodeMirror language extension for a given MIME type. * * @param {string} mimeType - The MIME type of the content * @returns {Extension[]} The CodeMirror language extension, or an empty array for plain text */ export function getLanguageExtension(mimeType: string): Extension[]; /** * Returns the base extensions for a CodeMirror editor. * * @param {Object} options - Configuration options * @param {boolean} options.editable - Whether the editor is editable (default: false) * @param {boolean} options.showLineNumbers - Whether to show line numbers (default: true) * @param {boolean} options.enableHistory - Whether to enable undo/redo history (default: true for editable) * @param {boolean} options.dark - Whether to use dark theme (default: false) * @param {boolean} options.lineWrapping - Whether to enable soft line wrapping (default: false) * @param {Function} options.onUpdate - Callback function called on document changes * @returns {Extension[]} Array of CodeMirror extensions */ export function getBaseExtensions(options?: { editable: boolean; showLineNumbers: boolean; enableHistory: boolean; dark: boolean; lineWrapping: boolean; onUpdate: Function; }): Extension[]; /** * Creates a CodeMirror editor instance. * * @param {Object} options - Configuration options * @param {HTMLElement} options.parent - The parent DOM element to attach the editor to * @param {string} options.content - The initial content of the editor * @param {string} options.mimeType - The MIME type for syntax highlighting * @param {boolean} options.editable - Whether the editor is editable (default: false) * @param {Function} options.onUpdate - Callback function called on document changes * @returns {EditorView} The CodeMirror editor view instance */ export function createEditorView(options: { parent: HTMLElement; content: string; mimeType: string; editable: boolean; onUpdate: Function; }): EditorView; /** * Vue composable for managing CodeMirror editor instances. * Provides reactive state management and automatic cleanup. * * @returns {Object} Composable API */ export function useCodeMirror(): any; export { EditorState } from '@codemirror/state'; export { EditorView } from '@codemirror/view'; export { oneDark } from '@codemirror/theme-one-dark'; //# sourceMappingURL=useCodeMirror.d.ts.map