import { type EditEnv } from '../doc/index.js'; import { type Selection } from '../caret/index.js'; import type { Attrs, ElementNode, NabiDoc } from '../schema/index.js'; export type CommandArgs = Readonly>; export interface CommandOutcome { readonly doc: NabiDoc; readonly selection: Selection; readonly arm?: ElementNode; } export type Command = (doc: NabiDoc, sel: Selection, args: CommandArgs, env: EditEnv) => CommandOutcome | null; export declare function markArg(args: CommandArgs): ElementNode | null; export declare function attrsArg(args: CommandArgs): Attrs | null | undefined; export declare function coreCommands(): Readonly>; //# sourceMappingURL=commands.d.ts.map