import { IEditorPluginConstructor } from "../../../types/kernel.js"; import "../../../types/index.js"; import { ISlashOption, SlashOptions } from "../service/i-slash-service.js"; interface ITriggerContext { getRect: () => DOMRect; items: Array | ((search: { leadOffset: number; matchingString: string; replaceableString: string; } | null) => Promise>); lastIndex: number; match?: { leadOffset: number; matchingString: string; replaceableString: string; } | null; trigger: SlashOptions['trigger']; } interface SlashPluginOptions { slashOptions?: SlashOptions[]; triggerClose: () => void; triggerOpen: (ctx: ITriggerContext) => void; } declare const SlashPlugin: IEditorPluginConstructor; export { ITriggerContext, SlashPlugin, SlashPluginOptions };