import { EditorState } from '../richTextTypes'; export interface Command { name: string; execute: (state: EditorState, value?: string) => void; isActive?: (state: EditorState) => boolean; getValue?: (state: EditorState) => string | null; } export interface CommandRegistry { [key: string]: Command; } export interface CommandExecutor { execute: (command: string, value?: string) => void; isActive: (command: string) => boolean; getValue: (command: string) => string | null; } export declare function createCommandRegistry(state: EditorState): CommandRegistry; export declare function createCommandExecutor(state: EditorState, commands: CommandRegistry): CommandExecutor; //# sourceMappingURL=commands.d.ts.map