import { AutoformatReplacement } from '@uidu/editor-common/provider-factory';
import { EditorView } from 'prosemirror-view';
export declare type InputRuleHander = (view: EditorView, match: string[], start: number, end: number) => Promise<AutoformatReplacement>;
export declare type InputRule = {
    matchTyping: RegExp;
    matchEnter: RegExp;
    handler: InputRuleHander;
};
export declare const triggerInputRule: (view: EditorView, rules: Array<InputRule>, from: number, to: number, text: string) => boolean;
