import type { AppState } from "@editor/state"; export type CommandContext = { state: AppState; }; export type Command = { id: string; name: string; execute(context: CommandContext, payload: TPayload): AppState; };