import type { StringEdit } from "./stringEdit.js"; export declare const COMMAND: RegExp; /** * The command name without "command", where "command" in it is a redundant * label: at the start or the end with a separator such as `:`, `-` or `|`, * or in brackets, as in "Command: open note", "Open note - command" or * "[Command] open note". Null where "command" is anything else, such as the * object of the name or a word in the middle of it. A last word that only * whitespace separates is a word of the name: "Open settings command" reads * like "Create slash command" or "Edit shell command", where "command" is * what the command acts on, and the words cannot tell them apart. */ export declare function redundantCommandInName(name: string): StringEdit | null; /** * Whether "command" in a command ID is redundant: it is the first or the * last word of the ID and nowhere else, at least two other words are left, * and it does not describe the next word (`command-palette`) or end a name * whose words make it the object (`copy-uri-command`, `run-shell-command`). * A last "command" is redundant only where the command's name, which * `nameWithoutCommand` says, does not have the word: `create-slash-command` * of "Create slash command" names a slash command, and with no name to read, * the words of the ID alone cannot tell. */ export declare function isRedundantCommandInId(id: string, nameWithoutCommand: boolean): boolean;