import { ICommandParameters, ICommandArguments } from './definitions'; export declare class CommandParseError extends Error { args: ICommandArguments; notGiven: string[]; constructor(message: string, result?: ICommandArguments, notGiven?: string[]); } /** A class that represents a shell-like-command and is able to parse commands */ export declare class Command { /** The raw declaration of the command instance */ private readonly _raw; /** The delcared parameters */ private readonly _parameters; /** An array of declared options */ private readonly _options; /** The command's name */ private readonly _name; /** * Check if a command matches the name * @param command the command for checking */ readonly is: (command: string) => boolean; /** Regexps for parsing declarations and commands */ private static readonly _REGEXES; readonly parameters: ICommandParameters; /** @param declaration The command declaration */ constructor(declaration: string); /** Reloaded version of toString() that returns the raw declaration */ toString(): string; /** * Parse a command * @param command The command for parsing */ parse(command: string): ICommandArguments; }