declare type Option = { parse: (arg: string) => K; default: K | Array; name?: string; short?: string; description?: string; free?: boolean; }; export declare type Options = { [name: string]: Option; }; export declare type OptionValues = { [Property in keyof K]: K[Property]['default']; }; export declare type Command = { name: string; description: string; options: T; exec: (options: OptionValues) => Promise; }; export declare function parseStringList(arg: String): string[]; export declare function createCommand(name: string, description: string, options: T, exec: (options: OptionValues) => Promise): Command; export {};