import type { CompletionResult } from '@codemirror/autocomplete'; import { CompletionContext } from '@codemirror/autocomplete'; import type { IntlProps } from '../../utils/render-node.js'; import type { Suggestion } from '../autocompletion.extension.js'; /** * @internal */ export interface ListAutocompletionConfig { /** Regex that needs to match before in order to trigger the auto-completions */ readonly matchBefore: RegExp; /** Auto-completions that are shown after the `matchBefore` RegExp was found. */ autocompletionList: (() => Promise) | Suggestion[]; reopen?: boolean; } export declare const listAutocompletionExtension: (listAutoCompletionConfig: ListAutocompletionConfig, intlProps: IntlProps) => ((ctx: CompletionContext) => Promise);