import { CommandCall } from './command-call'; /** * The type for command functions */ export type CommandFn = (sender: org.bukkit.command.CommandSender, call: CommandCall) => void | Promise; export declare class ServerCommands { /** * Map of command name to handlers. */ private static handlers; /** * Registers a command handler. * @param pattern the command pattern to register * @param handler the handler for the command * @returns true if the command was registered, false if it was not */ static register(pattern: string, handler: CommandFn): boolean; private static createExecutor; }