import type { PeritextDefaultCommands } from './default'; export type CommandBase = [name: Name, ...args: Args]; export type DefaultCommandNames = keyof PeritextDefaultCommands; export type DefaultCommands = { [K in DefaultCommandNames]: PeritextDefaultCommands[K] extends (...args: infer Args) => any ? CommandBase : never; }; export type DefaultCommand = DefaultCommands[DefaultCommandNames]; export type PeritextCommand = DefaultCommand | CommandBase; export type CommandCall = CommandCallWithArgs | CommandCallNoArgs; export type CommandCallWithArgs = [name: string, ...args: Args]; export type CommandCallNoArgs = string; //# sourceMappingURL=types.d.ts.map