import { Schema } from 'prosemirror-model';
import { Command, EditorState } from 'prosemirror-state';
import { EditorMenuTypes, EditorTextLink } from './types';
export interface CommandWithActive extends Command {
    active?: (state: EditorState) => boolean;
    allowed?: (state: EditorState) => boolean;
}
export declare const isExternalLink: (url: string) => boolean;
export declare class MenuCommandFactory {
    private schema;
    constructor(schema: Schema);
    getCommand(mark: EditorMenuTypes, link?: EditorTextLink): CommandWithActive;
    buildKeymap(): {
        'Mod-B': CommandWithActive;
        'Mod-I': CommandWithActive;
        'Mod-Shift-1': CommandWithActive;
        'Mod-Shift-2': CommandWithActive;
        'Mod-Shift-3': CommandWithActive;
        'Mod-Shift-X': CommandWithActive;
        'Mod-`': CommandWithActive;
        'Mod-Shift-C': CommandWithActive;
    };
}
//# sourceMappingURL=menu-commands.d.ts.map