commandkit 0.1.11-dev.20250330073734 → 0.1.11-dev.20250330115232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as discord_js from 'discord.js';
2
- import { RESTPostAPIApplicationCommandsJSONBody, Client, Interaction, CacheType, ClientEvents, Awaitable, ButtonBuilder, ButtonInteraction, Events, ModalBuilder, ModalSubmitInteraction, ActionRowBuilder, TextInputBuilder, ButtonStyle, ComponentEmojiResolvable, TextInputStyle, LocalizationMap, Locale, Message as Message$1, ApplicationCommandOptionType, GuildMember, Attachment, User, Role, CommandInteractionOption, ChatInputCommandInteraction, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, AutocompleteInteraction, Collection, SlashCommandBuilder, ContextMenuCommandBuilder, PartialMessage } from 'discord.js';
2
+ import { RESTPostAPIApplicationCommandsJSONBody, Client, Interaction, CacheType, ClientEvents, Awaitable, ButtonBuilder, ButtonInteraction, Events, ModalBuilder, ModalSubmitInteraction, ActionRowBuilder, TextInputBuilder, ButtonStyle, ComponentEmojiResolvable, TextInputStyle, StringSelectMenuBuilder, StringSelectMenuInteraction, ChannelSelectMenuBuilder, ChannelSelectMenuInteraction, MentionableSelectMenuBuilder, MentionableSelectMenuInteraction, UserSelectMenuBuilder, UserSelectMenuInteraction, RoleSelectMenuBuilder, RoleSelectMenuInteraction, BaseSelectMenuComponentData, StringSelectMenuOptionBuilder, SelectMenuComponentOptionData, APISelectMenuOption, UserSelectMenuComponentData, RoleSelectMenuComponentData, MentionableSelectMenuComponentData, ChannelSelectMenuComponentData, LocalizationMap, Locale, Message as Message$1, ApplicationCommandOptionType, GuildMember, Attachment, User, Role, CommandInteractionOption, ChatInputCommandInteraction, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, AutocompleteInteraction, Collection, SlashCommandBuilder, ContextMenuCommandBuilder, PartialMessage } from 'discord.js';
3
3
  import EventEmitter from 'node:events';
4
4
  import { Channel } from 'diagnostics_channel';
5
5
  import * as commander from 'commander';
@@ -361,6 +361,264 @@ declare function ShortInput(props: TextInputProps): CommandKitElement<'text-inpu
361
361
  */
362
362
  declare function ParagraphInput(props: TextInputProps): CommandKitElement<'text-input'>;
363
363
 
364
+ type SelectMenuKitPredicate<T> = (interaction: T) => Awaitable<boolean>;
365
+ /**
366
+ * The handler to run when a modal is submitted. This handler is called with the interaction as the first argument.
367
+ * If the first argument is null, it means that the interaction collector has been destroyed.
368
+ */
369
+ type OnSelectMenuKitSubmit<T, C> = CommandKitSelectMenuBuilderInteractionCollectorDispatch<T, C>;
370
+ /**
371
+ * The handler to run when the interaction collector ends. This handler is called with the reason as the first argument.
372
+ * If the first argument is null, it means that the interaction collector has been destroyed.
373
+ */
374
+ type OnSelectMenuKitEnd = CommandKitSelectMenuBuilderOnEnd;
375
+ /**
376
+ * The handler to run when a modal is submitted. This handler is called with the interaction as the first argument.
377
+ * If the first argument is null, it means that the interaction collector has been destroyed.
378
+ */
379
+ type CommandKitSelectMenuBuilderInteractionCollectorDispatch<T, C> = (interaction: T, context: C) => Awaitable<void>;
380
+ type CommandKitSelectMenuBuilderOnEnd = (reason: string) => Awaitable<void>;
381
+ type CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData = EventInterceptorContextData<Events.InteractionCreate>;
382
+
383
+ declare class StringSelectMenuKit extends StringSelectMenuBuilder {
384
+ #private;
385
+ /**
386
+ * Sets the handler to run when the modal is submitted.
387
+ * @param handler - The handler to run when the modal is submitted.
388
+ * @param data - The context data for the interaction collector.
389
+ * @returns This instance of the modal builder.
390
+ * @example
391
+ * ```ts
392
+ * const modal = new StringSelectMenuKit()
393
+ * .setTitle('My Modal')
394
+ * .setCustomId('my-modal')
395
+ * .filter((interaction) => interaction.user.id === '1234567890')
396
+ * .onSelect(async (interaction) => {
397
+ * await interaction.reply('You submitted the modal!');
398
+ * })
399
+ * .addComponents(actionRow1, actionRow2);
400
+ * ```
401
+ */
402
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<StringSelectMenuInteraction, StringSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
403
+ /**
404
+ * Sets the handler to run when the interaction collector ends.
405
+ * @param handler - The handler to run when the interaction collector ends.
406
+ * @returns This instance of the modal builder.
407
+ */
408
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
409
+ /**
410
+ * Sets the handler to run when the interaction collector ends.
411
+ * @param handler - The handler to run when the interaction collector ends.
412
+ * @returns This instance of the modal builder.
413
+ */
414
+ onError(handler: EventInterceptorErrorHandler): this;
415
+ /**
416
+ * Sets a filter for the interaction collector.
417
+ * @param predicate - The filter to use for the interaction collector.
418
+ * @returns This instance of the modal builder.
419
+ */
420
+ filter(predicate: SelectMenuKitPredicate<StringSelectMenuInteraction>): this;
421
+ private get customId();
422
+ dispose(): this;
423
+ }
424
+
425
+ declare class ChannelSelectMenuKit extends ChannelSelectMenuBuilder {
426
+ #private;
427
+ /**
428
+ * Sets the handler to run when the modal is submitted.
429
+ * @param handler - The handler to run when the modal is submitted.
430
+ * @param data - The context data for the interaction collector.
431
+ * @returns This instance of the modal builder.
432
+ * @example
433
+ * ```ts
434
+ * const modal = new ChannelSelectMenuKit()
435
+ * .setTitle('My Modal')
436
+ * .setCustomId('my-modal')
437
+ * .filter((interaction) => interaction.Channel.id === '1234567890')
438
+ * .onSelect(async (interaction) => {
439
+ * await interaction.reply('You submitted the modal!');
440
+ * })
441
+ * .addComponents(actionRow1, actionRow2);
442
+ * ```
443
+ */
444
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<ChannelSelectMenuInteraction, ChannelSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
445
+ /**
446
+ * Sets the handler to run when the interaction collector ends.
447
+ * @param handler - The handler to run when the interaction collector ends.
448
+ * @returns This instance of the modal builder.
449
+ */
450
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
451
+ /**
452
+ * Sets the handler to run when the interaction collector ends.
453
+ * @param handler - The handler to run when the interaction collector ends.
454
+ * @returns This instance of the modal builder.
455
+ */
456
+ onError(handler: EventInterceptorErrorHandler): this;
457
+ /**
458
+ * Sets a filter for the interaction collector.
459
+ * @param predicate - The filter to use for the interaction collector.
460
+ * @returns This instance of the modal builder.
461
+ */
462
+ filter(predicate: SelectMenuKitPredicate<ChannelSelectMenuInteraction>): this;
463
+ private get customId();
464
+ dispose(): this;
465
+ }
466
+
467
+ declare class MentionableSelectMenuKit extends MentionableSelectMenuBuilder {
468
+ #private;
469
+ /**
470
+ * Sets the handler to run when the modal is submitted.
471
+ * @param handler - The handler to run when the modal is submitted.
472
+ * @param data - The context data for the interaction collector.
473
+ * @returns This instance of the modal builder.
474
+ * @example
475
+ * ```ts
476
+ * const modal = new MentionableSelectMenuKit()
477
+ * .setTitle('My Modal')
478
+ * .setCustomId('my-modal')
479
+ * .filter((interaction) => interaction.Mentionable.id === '1234567890')
480
+ * .onSelect(async (interaction) => {
481
+ * await interaction.reply('You submitted the modal!');
482
+ * })
483
+ * .addComponents(actionRow1, actionRow2);
484
+ * ```
485
+ */
486
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<MentionableSelectMenuInteraction, MentionableSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
487
+ /**
488
+ * Sets the handler to run when the interaction collector ends.
489
+ * @param handler - The handler to run when the interaction collector ends.
490
+ * @returns This instance of the modal builder.
491
+ */
492
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
493
+ /**
494
+ * Sets the handler to run when the interaction collector ends.
495
+ * @param handler - The handler to run when the interaction collector ends.
496
+ * @returns This instance of the modal builder.
497
+ */
498
+ onError(handler: EventInterceptorErrorHandler): this;
499
+ /**
500
+ * Sets a filter for the interaction collector.
501
+ * @param predicate - The filter to use for the interaction collector.
502
+ * @returns This instance of the modal builder.
503
+ */
504
+ filter(predicate: SelectMenuKitPredicate<MentionableSelectMenuInteraction>): this;
505
+ private get customId();
506
+ dispose(): this;
507
+ }
508
+
509
+ declare class UserSelectMenuKit extends UserSelectMenuBuilder {
510
+ #private;
511
+ /**
512
+ * Sets the handler to run when the modal is submitted.
513
+ * @param handler - The handler to run when the modal is submitted.
514
+ * @param data - The context data for the interaction collector.
515
+ * @returns This instance of the modal builder.
516
+ * @example
517
+ * ```ts
518
+ * const modal = new UserSelectMenuKit()
519
+ * .setTitle('My Modal')
520
+ * .setCustomId('my-modal')
521
+ * .filter((interaction) => interaction.user.id === '1234567890')
522
+ * .onSelect(async (interaction) => {
523
+ * await interaction.reply('You submitted the modal!');
524
+ * })
525
+ * .addComponents(actionRow1, actionRow2);
526
+ * ```
527
+ */
528
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<UserSelectMenuInteraction, UserSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
529
+ /**
530
+ * Sets the handler to run when the interaction collector ends.
531
+ * @param handler - The handler to run when the interaction collector ends.
532
+ * @returns This instance of the modal builder.
533
+ */
534
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
535
+ /**
536
+ * Sets the handler to run when the interaction collector ends.
537
+ * @param handler - The handler to run when the interaction collector ends.
538
+ * @returns This instance of the modal builder.
539
+ */
540
+ onError(handler: EventInterceptorErrorHandler): this;
541
+ /**
542
+ * Sets a filter for the interaction collector.
543
+ * @param predicate - The filter to use for the interaction collector.
544
+ * @returns This instance of the modal builder.
545
+ */
546
+ filter(predicate: SelectMenuKitPredicate<UserSelectMenuInteraction>): this;
547
+ private get customId();
548
+ dispose(): this;
549
+ }
550
+
551
+ declare class RoleSelectMenuKit extends RoleSelectMenuBuilder {
552
+ #private;
553
+ /**
554
+ * Sets the handler to run when the modal is submitted.
555
+ * @param handler - The handler to run when the modal is submitted.
556
+ * @param data - The context data for the interaction collector.
557
+ * @returns This instance of the modal builder.
558
+ * @example
559
+ * ```ts
560
+ * const modal = new RoleSelectMenuKit()
561
+ * .setTitle('My Modal')
562
+ * .setCustomId('my-modal')
563
+ * .filter((interaction) => interaction.Role.id === '1234567890')
564
+ * .onSelect(async (interaction) => {
565
+ * await interaction.reply('You submitted the modal!');
566
+ * })
567
+ * .addComponents(actionRow1, actionRow2);
568
+ * ```
569
+ */
570
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<RoleSelectMenuInteraction, RoleSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
571
+ /**
572
+ * Sets the handler to run when the interaction collector ends.
573
+ * @param handler - The handler to run when the interaction collector ends.
574
+ * @returns This instance of the modal builder.
575
+ */
576
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
577
+ /**
578
+ * Sets the handler to run when the interaction collector ends.
579
+ * @param handler - The handler to run when the interaction collector ends.
580
+ * @returns This instance of the modal builder.
581
+ */
582
+ onError(handler: EventInterceptorErrorHandler): this;
583
+ /**
584
+ * Sets a filter for the interaction collector.
585
+ * @param predicate - The filter to use for the interaction collector.
586
+ * @returns This instance of the modal builder.
587
+ */
588
+ filter(predicate: SelectMenuKitPredicate<RoleSelectMenuInteraction>): this;
589
+ private get customId();
590
+ dispose(): this;
591
+ }
592
+
593
+ interface CommonSelectMenuProps<T, C> {
594
+ onSelect?: CommandKitSelectMenuBuilderInteractionCollectorDispatch<T, C>;
595
+ onEnd?: CommandKitSelectMenuBuilderOnEnd;
596
+ onError?: (error: Error) => any;
597
+ options?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData;
598
+ }
599
+ interface SelectMenuProps<T, C> extends Partial<Omit<BaseSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<T, C> {
600
+ }
601
+ interface StringSelectMenuProps extends SelectMenuProps<StringSelectMenuInteraction, StringSelectMenuKit> {
602
+ children?: MaybeArray<StringSelectMenuOptionBuilder>;
603
+ }
604
+ type CommonBuilderKit = StringSelectMenuKit | UserSelectMenuKit | RoleSelectMenuKit | ChannelSelectMenuKit | MentionableSelectMenuKit;
605
+ type ResolveBuilderInteraction<T> = T extends StringSelectMenuKit ? StringSelectMenuInteraction : T extends UserSelectMenuKit ? UserSelectMenuInteraction : T extends RoleSelectMenuKit ? RoleSelectMenuInteraction : T extends ChannelSelectMenuKit ? ChannelSelectMenuInteraction : T extends MentionableSelectMenuKit ? MentionableSelectMenuInteraction : never;
606
+ declare function StringSelectMenu(props: StringSelectMenuProps): StringSelectMenuKit;
607
+ type StringSelectMenuOptionProps = SelectMenuComponentOptionData | APISelectMenuOption;
608
+ declare function StringSelectMenuOption(props: StringSelectMenuOptionProps): StringSelectMenuOptionBuilder;
609
+ interface UserSelectMenuProps extends Partial<Omit<UserSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<UserSelectMenuInteraction, UserSelectMenuKit> {
610
+ }
611
+ declare function UserSelectMenu(props: UserSelectMenuProps): UserSelectMenuKit;
612
+ interface RoleSelectMenuProps extends Partial<Omit<RoleSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<RoleSelectMenuInteraction, RoleSelectMenuKit> {
613
+ }
614
+ declare function RoleSelectMenu(props: RoleSelectMenuProps): RoleSelectMenuKit;
615
+ interface MentionableSelectMenuProps extends Partial<Omit<MentionableSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<MentionableSelectMenuInteraction, MentionableSelectMenuKit> {
616
+ }
617
+ declare function MentionableSelectMenu(props: MentionableSelectMenuProps): MentionableSelectMenuKit;
618
+ interface ChannelSelectMenuProps extends Partial<Omit<ChannelSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<ChannelSelectMenuInteraction, ChannelSelectMenuKit> {
619
+ }
620
+ declare function ChannelSelectMenu(props: ChannelSelectMenuProps): ChannelSelectMenuKit;
621
+
364
622
  interface TranslatableCommand {
365
623
  name?: string;
366
624
  description?: string;
@@ -1697,4 +1955,4 @@ declare const version: string;
1697
1955
  */
1698
1956
  declare function bootstrapCommandkitCLI(argv: string[], options?: commander.ParseOptions | undefined): Promise<void>;
1699
1957
 
1700
- export { ActionRow, type ActionRowProps, type AnyCommandExecute, type AnyCommandKitElement, type ApiTranslatableCommandOptions, AppCommandHandler, type AsyncFunction, type AutocompleteCommand, type AutocompleteCommandContext, type AutocompleteCommandMiddlewareContext, Button, type ButtonChildrenLike, ButtonKit, type ButtonKitPredicate, type ButtonProps, type CacheContext, type CacheEntry, type CacheMetadata, CacheProvider, type Command, type CommandContext, type CommandContextOptions, type CommandData, CommandExecutionMode, CommandKit, type CommandKitButtonBuilderInteractionCollectorDispatch, type CommandKitButtonBuilderInteractionCollectorDispatchContextData, type CommandKitButtonBuilderOnEnd, type CommandKitConfiguration, type CommandKitElement, type CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, type CommandKitLoggerOptions, type CommandKitModalBuilderInteractionCollectorDispatch, type CommandKitModalBuilderInteractionCollectorDispatchContextData, type CommandKitModalBuilderOnEnd, type CommandKitOptions, type CommandKitPlugin, CommandKitPluginRuntime, type CommandLocalizationTypeData, type CommandSource, type CommandTypeData, CommandsRouter, type CommandsRouterOptions, type CommonPluginRuntime, CompilerPlugin, CompilerPluginRuntime, Context, type ContextParameters, DefaultLocalizationStrategy, DefaultLogger, ElementType, EventInterceptor, type EventInterceptorContextData, type EventInterceptorErrorHandler, EventsRouter, type EventsRouterOptions, type EventsTree, Fragment, type FragmentElementProps, type GenericFunction, type ILogger, type InteractionCommandContext, type InteractionCommandMiddlewareContext, type LoadedCommand, type Loader, Localization, type LocalizationConfig, type LocalizationStrategy, type LocalizationTranslationRequest, type Location, Logger, type LoggerImpl, type MaybeArray, type MaybeFalsey, MemoryCache, type Message, type MessageCommand, type MessageCommandContext, type MessageCommandMiddlewareContext, MessageCommandOptions, type MessageCommandOptionsSchema, MessageCommandParser, type MessageContextMenuCommand, type MessageContextMenuCommandContext, type MessageContextMenuCommandMiddlewareContext, type Middleware, MiddlewareContext, type MiddlewareContextArgs, Modal, ModalKit, type ModalKitPredicate, type ModalProps, type OnButtonKitClick, type OnButtonKitEnd, type OnLoadArgs, type OnLoadOptions, type OnLoadResult, type OnModalKitEnd, type OnModalKitSubmit, type OnResolveArgs, type OnResolveOptions, type OnResolveResult, ParagraphInput, type ParsedCommandData, type ParsedEvent, type ParsedMessageCommand, type PluginTransformParameters, type PreparedAppCommandExecution, type ResolvableCommand, type ResolveKind, type ResolveResult, type RunCommand, RuntimePlugin, type Setup, ShortInput, type SlashCommand, type SlashCommandContext, type SlashCommandMiddlewareContext, TextInput, type TextInputProps, type TransformedResult, type TranslatableArguments, type TranslatableCommand, type TranslatableCommandName, type TranslatableCommandOptions, type Translation, type TranslationResult, type Translator, type UserContextMenuCommand, type UserContextMenuCommandContext, type UserContextMenuCommandMiddlewareContext, afterCommand, bootstrapCommandkitCLI, cache, cacheLife, cacheTag, cancelAfterCommand, commandkit, createElement, createLogger, CommandKit as default, defineConfig, exitContext, exitMiddleware, fromEsbuildPlugin, getCommandKit, getConfig, getContext, getElement, invalidate, isCachedFunction, isCommandKitElement, isCompilerPlugin, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, provideContext, redirect, rethrow, revalidate, useCache as super_duper_secret_internal_for_use_cache_directive_of_commandkit_cli_do_not_use_it_directly_or_you_will_be_fired_from_your_job_kthxbai, useEnvironment, version };
1958
+ export { ActionRow, type ActionRowProps, type AnyCommandExecute, type AnyCommandKitElement, type ApiTranslatableCommandOptions, AppCommandHandler, type AsyncFunction, type AutocompleteCommand, type AutocompleteCommandContext, type AutocompleteCommandMiddlewareContext, Button, type ButtonChildrenLike, ButtonKit, type ButtonKitPredicate, type ButtonProps, type CacheContext, type CacheEntry, type CacheMetadata, CacheProvider, ChannelSelectMenu, ChannelSelectMenuKit, type ChannelSelectMenuProps, type Command, type CommandContext, type CommandContextOptions, type CommandData, CommandExecutionMode, CommandKit, type CommandKitButtonBuilderInteractionCollectorDispatch, type CommandKitButtonBuilderInteractionCollectorDispatchContextData, type CommandKitButtonBuilderOnEnd, type CommandKitConfiguration, type CommandKitElement, type CommandKitElementData, CommandKitEnvironment, type CommandKitEnvironmentInternalData, CommandKitEnvironmentType, type CommandKitLoggerOptions, type CommandKitModalBuilderInteractionCollectorDispatch, type CommandKitModalBuilderInteractionCollectorDispatchContextData, type CommandKitModalBuilderOnEnd, type CommandKitOptions, type CommandKitPlugin, CommandKitPluginRuntime, type CommandKitSelectMenuBuilderInteractionCollectorDispatch, type CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, type CommandKitSelectMenuBuilderOnEnd, type CommandLocalizationTypeData, type CommandSource, type CommandTypeData, CommandsRouter, type CommandsRouterOptions, type CommonBuilderKit, type CommonPluginRuntime, type CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Context, type ContextParameters, DefaultLocalizationStrategy, DefaultLogger, ElementType, EventInterceptor, type EventInterceptorContextData, type EventInterceptorErrorHandler, EventsRouter, type EventsRouterOptions, type EventsTree, Fragment, type FragmentElementProps, type GenericFunction, type ILogger, type InteractionCommandContext, type InteractionCommandMiddlewareContext, type LoadedCommand, type Loader, Localization, type LocalizationConfig, type LocalizationStrategy, type LocalizationTranslationRequest, type Location, Logger, type LoggerImpl, type MaybeArray, type MaybeFalsey, MemoryCache, MentionableSelectMenu, MentionableSelectMenuKit, type MentionableSelectMenuProps, type Message, type MessageCommand, type MessageCommandContext, type MessageCommandMiddlewareContext, MessageCommandOptions, type MessageCommandOptionsSchema, MessageCommandParser, type MessageContextMenuCommand, type MessageContextMenuCommandContext, type MessageContextMenuCommandMiddlewareContext, type Middleware, MiddlewareContext, type MiddlewareContextArgs, Modal, ModalKit, type ModalKitPredicate, type ModalProps, type OnButtonKitClick, type OnButtonKitEnd, type OnLoadArgs, type OnLoadOptions, type OnLoadResult, type OnModalKitEnd, type OnModalKitSubmit, type OnResolveArgs, type OnResolveOptions, type OnResolveResult, type OnSelectMenuKitEnd, type OnSelectMenuKitSubmit, ParagraphInput, type ParsedCommandData, type ParsedEvent, type ParsedMessageCommand, type PluginTransformParameters, type PreparedAppCommandExecution, type ResolvableCommand, type ResolveBuilderInteraction, type ResolveKind, type ResolveResult, RoleSelectMenu, RoleSelectMenuKit, type RoleSelectMenuProps, type RunCommand, RuntimePlugin, type SelectMenuKitPredicate, type SelectMenuProps, type Setup, ShortInput, type SlashCommand, type SlashCommandContext, type SlashCommandMiddlewareContext, StringSelectMenu, StringSelectMenuKit, StringSelectMenuOption, type StringSelectMenuOptionProps, type StringSelectMenuProps, TextInput, type TextInputProps, type TransformedResult, type TranslatableArguments, type TranslatableCommand, type TranslatableCommandName, type TranslatableCommandOptions, type Translation, type TranslationResult, type Translator, type UserContextMenuCommand, type UserContextMenuCommandContext, type UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, type UserSelectMenuProps, afterCommand, bootstrapCommandkitCLI, cache, cacheLife, cacheTag, cancelAfterCommand, commandkit, createElement, createLogger, CommandKit as default, defineConfig, exitContext, exitMiddleware, fromEsbuildPlugin, getCommandKit, getConfig, getContext, getElement, invalidate, isCachedFunction, isCommandKitElement, isCompilerPlugin, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, provideContext, redirect, rethrow, revalidate, useCache as super_duper_secret_internal_for_use_cache_directive_of_commandkit_cli_do_not_use_it_directly_or_you_will_be_fired_from_your_job_kthxbai, useEnvironment, version };