import { Plugin, Transaction, EditorState, Command } from "prosemirror-state";
export declare class InputRule {
    readonly match: RegExp;
    handler: (state: EditorState, match: RegExpMatchArray, start: number, end: number) => Transaction | null;
    undoable: boolean;
    inCode: boolean | "only";
    inCodeMark: boolean | "only";
    constructor(match: RegExp, handler: string | ((state: EditorState, match: RegExpMatchArray, start: number, end: number) => Transaction | null), options?: {
        undoable?: boolean;
        inCode?: boolean | "only";
        inCodeMark?: boolean;
    });
}
type PluginState = {
    transform: Transaction;
    from: number;
    to: number;
    text: string;
} | null;
export declare function inputRules({ rules }: {
    rules: readonly InputRule[];
}): Plugin<PluginState>;
export declare const undoInputRule: Command;
export {};
