import { PrismEditor } from '../index.js';
type EditorCommand = (editor: PrismEditor, e: KeyboardEvent) => void | boolean;
declare const normalizeKey: (command: string) => string;
declare const getKeyCommands: (e: KeyboardEvent) => Set<string>;
declare const runKeyCommands: <T extends (...args: any) => any>(e: KeyboardEvent, commandMap: Record<string, T[] | undefined>, args: Parameters<T>) => true | undefined;
declare const addEditorCommand: (editor: PrismEditor, key: string, command: EditorCommand, highPriority?: boolean) => void;
declare const removeEditorCommand: (editor: PrismEditor, key: string, command: EditorCommand) => void;
export { normalizeKey, getKeyCommands, addEditorCommand, removeEditorCommand, runKeyCommands };
