import { VividIcon } from '../../../../shared/icon/vivid-icon.ts'; import { RteFragment } from '../document'; export interface Suggestion { text: string; textSecondary?: string; icon?: string | VividIcon; data?: unknown; } export interface SuggestionGroup { label: string; suggestions: Suggestion[]; } export type SuggestionEntry = Suggestion | SuggestionGroup; export interface RteSuggestFeatureOptions { pattern: RegExp; load: (match: string[]) => SuggestionEntry[] | Promise; select: (suggestion: Suggestion) => RteFragment; } export declare const RteSuggestFeature: { new (featureId: string, options: RteSuggestFeatureOptions): {}; };