import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
export type InputRuleHandler = (state: EditorState, matchResult: RegExpExecArray, start: number, end: number) => Transaction | null;
export type OnHandlerApply = (state: EditorState, tr: Transaction, matchResult: RegExpExecArray) => void;
export interface InputRuleWrapper {
    allowsBackwardMatch?: boolean;
    handler: InputRuleHandler;
    match: RegExp;
    onHandlerApply?: OnHandlerApply;
}
