import * as React from "react"; import { EditorState } from "draft-js"; declare type Execute = (EditorState: any, data?: any) => EditorState; declare type ExecutePromise = (EditorState: any, data?: any) => Promise; export interface Command { buttonContent: React.ReactNode; buttonProps?: any; children?: Command[]; execute?: Execute | ExecutePromise; } export {};