import type { Completion } from '@codemirror/autocomplete'; import { Language } from '@codemirror/language'; import type { Extension } from '@codemirror/state'; import { AutocompleteProvider } from '../auto-completion/autocompletion.extension.js'; import type { ListAutocompletionConfig } from '../auto-completion/list/list-autocompletion-types.js'; /** * @internal */ export interface AutocompletionOptions { /** Activates autocomplete on typing */ activateOnTyping: boolean; /** Adds additional CSS classes to completion options. */ optionClass?: (completion: Completion) => string; /** Providers for autocomplete sources */ providers: Array; } /** * @internal */ export interface EditorLanguageConfiguration { /** * The CodeMirror language that provides syntax highlighting and parsing. */ language?: Language; /** * Whether the editor configuration includes a linter. Set this to `true` * when adding a linter to `extendWith` so `validate()` and form submission * wait for its result. * @defaultValue false */ hasLintSource?: boolean; /** * Additional CodeMirror extensions to install, e.g. folding, linters or key bindings. */ extendWith?: readonly Extension[]; /** * Configures the autocompletion of the editor. Autocompletion is not installed when omitted. */ autocompleteOptions?: AutocompletionOptions; } //# sourceMappingURL=configuration.d.ts.map