import { ViewPlugin, ViewUpdate, DecorationSet } from '@codemirror/view';

/**
 * @desc 创建自动匹配进行占位
 * @param regexp 进行字段匹配
 * @param matchHandler 对匹配进行处理
 * @param category // 其他的classname
 * @returns
 */
export declare const createMathPlaceholder: (regexp: RegExp, matchHandler: (match: RegExpExecArray) => string, category?: string) => ViewPlugin<{
    placeholders: DecorationSet;
    update(update: ViewUpdate): void;
}>;
