commandkit 0.1.11-dev.20250330073734 → 0.1.11-dev.20250330115847

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, StringSelectMenuInteraction, StringSelectMenuBuilder, ChannelSelectMenuInteraction, ChannelSelectMenuBuilder, MentionableSelectMenuInteraction, MentionableSelectMenuBuilder, UserSelectMenuInteraction, UserSelectMenuBuilder, RoleSelectMenuInteraction, RoleSelectMenuBuilder, 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,274 @@ 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
+ type OnStringSelectMenuKitSubmit = OnSelectMenuKitSubmit<StringSelectMenuInteraction, StringSelectMenuKit>;
384
+ type StringSelectMenuKitPredicate = SelectMenuKitPredicate<StringSelectMenuInteraction>;
385
+ declare class StringSelectMenuKit extends StringSelectMenuBuilder {
386
+ #private;
387
+ /**
388
+ * Sets the handler to run when the modal is submitted.
389
+ * @param handler - The handler to run when the modal is submitted.
390
+ * @param data - The context data for the interaction collector.
391
+ * @returns This instance of the modal builder.
392
+ * @example
393
+ * ```ts
394
+ * const modal = new StringSelectMenuKit()
395
+ * .setTitle('My Modal')
396
+ * .setCustomId('my-modal')
397
+ * .filter((interaction) => interaction.user.id === '1234567890')
398
+ * .onSelect(async (interaction) => {
399
+ * await interaction.reply('You submitted the modal!');
400
+ * })
401
+ * .addComponents(actionRow1, actionRow2);
402
+ * ```
403
+ */
404
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<StringSelectMenuInteraction, StringSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
405
+ /**
406
+ * Sets the handler to run when the interaction collector ends.
407
+ * @param handler - The handler to run when the interaction collector ends.
408
+ * @returns This instance of the modal builder.
409
+ */
410
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
411
+ /**
412
+ * Sets the handler to run when the interaction collector ends.
413
+ * @param handler - The handler to run when the interaction collector ends.
414
+ * @returns This instance of the modal builder.
415
+ */
416
+ onError(handler: EventInterceptorErrorHandler): this;
417
+ /**
418
+ * Sets a filter for the interaction collector.
419
+ * @param predicate - The filter to use for the interaction collector.
420
+ * @returns This instance of the modal builder.
421
+ */
422
+ filter(predicate: SelectMenuKitPredicate<StringSelectMenuInteraction>): this;
423
+ private get customId();
424
+ dispose(): this;
425
+ }
426
+
427
+ type OnChannelSelectMenuKitSubmit = OnSelectMenuKitSubmit<ChannelSelectMenuInteraction, ChannelSelectMenuKit>;
428
+ type ChannelSelectMenuKitPredicate = SelectMenuKitPredicate<ChannelSelectMenuInteraction>;
429
+ declare class ChannelSelectMenuKit extends ChannelSelectMenuBuilder {
430
+ #private;
431
+ /**
432
+ * Sets the handler to run when the modal is submitted.
433
+ * @param handler - The handler to run when the modal is submitted.
434
+ * @param data - The context data for the interaction collector.
435
+ * @returns This instance of the modal builder.
436
+ * @example
437
+ * ```ts
438
+ * const modal = new ChannelSelectMenuKit()
439
+ * .setTitle('My Modal')
440
+ * .setCustomId('my-modal')
441
+ * .filter((interaction) => interaction.Channel.id === '1234567890')
442
+ * .onSelect(async (interaction) => {
443
+ * await interaction.reply('You submitted the modal!');
444
+ * })
445
+ * .addComponents(actionRow1, actionRow2);
446
+ * ```
447
+ */
448
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<ChannelSelectMenuInteraction, ChannelSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
449
+ /**
450
+ * Sets the handler to run when the interaction collector ends.
451
+ * @param handler - The handler to run when the interaction collector ends.
452
+ * @returns This instance of the modal builder.
453
+ */
454
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
455
+ /**
456
+ * Sets the handler to run when the interaction collector ends.
457
+ * @param handler - The handler to run when the interaction collector ends.
458
+ * @returns This instance of the modal builder.
459
+ */
460
+ onError(handler: EventInterceptorErrorHandler): this;
461
+ /**
462
+ * Sets a filter for the interaction collector.
463
+ * @param predicate - The filter to use for the interaction collector.
464
+ * @returns This instance of the modal builder.
465
+ */
466
+ filter(predicate: SelectMenuKitPredicate<ChannelSelectMenuInteraction>): this;
467
+ private get customId();
468
+ dispose(): this;
469
+ }
470
+
471
+ type OnMentionableSelectMenuKitSubmit = OnSelectMenuKitSubmit<MentionableSelectMenuInteraction, MentionableSelectMenuKit>;
472
+ type MentionableSelectMenuKitPredicate = SelectMenuKitPredicate<MentionableSelectMenuInteraction>;
473
+ declare class MentionableSelectMenuKit extends MentionableSelectMenuBuilder {
474
+ #private;
475
+ /**
476
+ * Sets the handler to run when the modal is submitted.
477
+ * @param handler - The handler to run when the modal is submitted.
478
+ * @param data - The context data for the interaction collector.
479
+ * @returns This instance of the modal builder.
480
+ * @example
481
+ * ```ts
482
+ * const modal = new MentionableSelectMenuKit()
483
+ * .setTitle('My Modal')
484
+ * .setCustomId('my-modal')
485
+ * .filter((interaction) => interaction.Mentionable.id === '1234567890')
486
+ * .onSelect(async (interaction) => {
487
+ * await interaction.reply('You submitted the modal!');
488
+ * })
489
+ * .addComponents(actionRow1, actionRow2);
490
+ * ```
491
+ */
492
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<MentionableSelectMenuInteraction, MentionableSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): 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
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
499
+ /**
500
+ * Sets the handler to run when the interaction collector ends.
501
+ * @param handler - The handler to run when the interaction collector ends.
502
+ * @returns This instance of the modal builder.
503
+ */
504
+ onError(handler: EventInterceptorErrorHandler): this;
505
+ /**
506
+ * Sets a filter for the interaction collector.
507
+ * @param predicate - The filter to use for the interaction collector.
508
+ * @returns This instance of the modal builder.
509
+ */
510
+ filter(predicate: SelectMenuKitPredicate<MentionableSelectMenuInteraction>): this;
511
+ private get customId();
512
+ dispose(): this;
513
+ }
514
+
515
+ type OnUserSelectMenuKitSubmit = OnSelectMenuKitSubmit<UserSelectMenuInteraction, UserSelectMenuKit>;
516
+ type UserSelectMenuKitPredicate = SelectMenuKitPredicate<UserSelectMenuInteraction>;
517
+ declare class UserSelectMenuKit extends UserSelectMenuBuilder {
518
+ #private;
519
+ /**
520
+ * Sets the handler to run when the modal is submitted.
521
+ * @param handler - The handler to run when the modal is submitted.
522
+ * @param data - The context data for the interaction collector.
523
+ * @returns This instance of the modal builder.
524
+ * @example
525
+ * ```ts
526
+ * const modal = new UserSelectMenuKit()
527
+ * .setTitle('My Modal')
528
+ * .setCustomId('my-modal')
529
+ * .filter((interaction) => interaction.user.id === '1234567890')
530
+ * .onSelect(async (interaction) => {
531
+ * await interaction.reply('You submitted the modal!');
532
+ * })
533
+ * .addComponents(actionRow1, actionRow2);
534
+ * ```
535
+ */
536
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<UserSelectMenuInteraction, UserSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
537
+ /**
538
+ * Sets the handler to run when the interaction collector ends.
539
+ * @param handler - The handler to run when the interaction collector ends.
540
+ * @returns This instance of the modal builder.
541
+ */
542
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
543
+ /**
544
+ * Sets the handler to run when the interaction collector ends.
545
+ * @param handler - The handler to run when the interaction collector ends.
546
+ * @returns This instance of the modal builder.
547
+ */
548
+ onError(handler: EventInterceptorErrorHandler): this;
549
+ /**
550
+ * Sets a filter for the interaction collector.
551
+ * @param predicate - The filter to use for the interaction collector.
552
+ * @returns This instance of the modal builder.
553
+ */
554
+ filter(predicate: SelectMenuKitPredicate<UserSelectMenuInteraction>): this;
555
+ private get customId();
556
+ dispose(): this;
557
+ }
558
+
559
+ type OnRoleSelectMenuKitSubmit = OnSelectMenuKitSubmit<RoleSelectMenuInteraction, RoleSelectMenuKit>;
560
+ type RoleSelectMenuKitPredicate = SelectMenuKitPredicate<RoleSelectMenuInteraction>;
561
+ declare class RoleSelectMenuKit extends RoleSelectMenuBuilder {
562
+ #private;
563
+ /**
564
+ * Sets the handler to run when the modal is submitted.
565
+ * @param handler - The handler to run when the modal is submitted.
566
+ * @param data - The context data for the interaction collector.
567
+ * @returns This instance of the modal builder.
568
+ * @example
569
+ * ```ts
570
+ * const modal = new RoleSelectMenuKit()
571
+ * .setTitle('My Modal')
572
+ * .setCustomId('my-modal')
573
+ * .filter((interaction) => interaction.Role.id === '1234567890')
574
+ * .onSelect(async (interaction) => {
575
+ * await interaction.reply('You submitted the modal!');
576
+ * })
577
+ * .addComponents(actionRow1, actionRow2);
578
+ * ```
579
+ */
580
+ onSelect(handler: CommandKitSelectMenuBuilderInteractionCollectorDispatch<RoleSelectMenuInteraction, RoleSelectMenuKit>, data?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData): this;
581
+ /**
582
+ * Sets the handler to run when the interaction collector ends.
583
+ * @param handler - The handler to run when the interaction collector ends.
584
+ * @returns This instance of the modal builder.
585
+ */
586
+ onEnd(handler: CommandKitSelectMenuBuilderOnEnd): this;
587
+ /**
588
+ * Sets the handler to run when the interaction collector ends.
589
+ * @param handler - The handler to run when the interaction collector ends.
590
+ * @returns This instance of the modal builder.
591
+ */
592
+ onError(handler: EventInterceptorErrorHandler): this;
593
+ /**
594
+ * Sets a filter for the interaction collector.
595
+ * @param predicate - The filter to use for the interaction collector.
596
+ * @returns This instance of the modal builder.
597
+ */
598
+ filter(predicate: SelectMenuKitPredicate<RoleSelectMenuInteraction>): this;
599
+ private get customId();
600
+ dispose(): this;
601
+ }
602
+
603
+ interface CommonSelectMenuProps<T, C> {
604
+ onSelect?: CommandKitSelectMenuBuilderInteractionCollectorDispatch<T, C>;
605
+ onEnd?: CommandKitSelectMenuBuilderOnEnd;
606
+ onError?: (error: Error) => any;
607
+ options?: CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData;
608
+ }
609
+ interface SelectMenuProps<T, C> extends Partial<Omit<BaseSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<T, C> {
610
+ }
611
+ interface StringSelectMenuProps extends SelectMenuProps<StringSelectMenuInteraction, StringSelectMenuKit> {
612
+ children?: MaybeArray<StringSelectMenuOptionBuilder>;
613
+ }
614
+ type CommonBuilderKit = StringSelectMenuKit | UserSelectMenuKit | RoleSelectMenuKit | ChannelSelectMenuKit | MentionableSelectMenuKit;
615
+ type ResolveBuilderInteraction<T> = T extends StringSelectMenuKit ? StringSelectMenuInteraction : T extends UserSelectMenuKit ? UserSelectMenuInteraction : T extends RoleSelectMenuKit ? RoleSelectMenuInteraction : T extends ChannelSelectMenuKit ? ChannelSelectMenuInteraction : T extends MentionableSelectMenuKit ? MentionableSelectMenuInteraction : never;
616
+ declare function StringSelectMenu(props: StringSelectMenuProps): StringSelectMenuKit;
617
+ type StringSelectMenuOptionProps = SelectMenuComponentOptionData | APISelectMenuOption;
618
+ declare function StringSelectMenuOption(props: StringSelectMenuOptionProps): StringSelectMenuOptionBuilder;
619
+ interface UserSelectMenuProps extends Partial<Omit<UserSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<UserSelectMenuInteraction, UserSelectMenuKit> {
620
+ }
621
+ declare function UserSelectMenu(props: UserSelectMenuProps): UserSelectMenuKit;
622
+ interface RoleSelectMenuProps extends Partial<Omit<RoleSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<RoleSelectMenuInteraction, RoleSelectMenuKit> {
623
+ }
624
+ declare function RoleSelectMenu(props: RoleSelectMenuProps): RoleSelectMenuKit;
625
+ interface MentionableSelectMenuProps extends Partial<Omit<MentionableSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<MentionableSelectMenuInteraction, MentionableSelectMenuKit> {
626
+ }
627
+ declare function MentionableSelectMenu(props: MentionableSelectMenuProps): MentionableSelectMenuKit;
628
+ interface ChannelSelectMenuProps extends Partial<Omit<ChannelSelectMenuComponentData, 'type'>>, CommonSelectMenuProps<ChannelSelectMenuInteraction, ChannelSelectMenuKit> {
629
+ }
630
+ declare function ChannelSelectMenu(props: ChannelSelectMenuProps): ChannelSelectMenuKit;
631
+
364
632
  interface TranslatableCommand {
365
633
  name?: string;
366
634
  description?: string;
@@ -1697,4 +1965,4 @@ declare const version: string;
1697
1965
  */
1698
1966
  declare function bootstrapCommandkitCLI(argv: string[], options?: commander.ParseOptions | undefined): Promise<void>;
1699
1967
 
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 };
1968
+ 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 ChannelSelectMenuKitPredicate, 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 MentionableSelectMenuKitPredicate, 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 OnChannelSelectMenuKitSubmit, type OnLoadArgs, type OnLoadOptions, type OnLoadResult, type OnMentionableSelectMenuKitSubmit, type OnModalKitEnd, type OnModalKitSubmit, type OnResolveArgs, type OnResolveOptions, type OnResolveResult, type OnRoleSelectMenuKitSubmit, type OnSelectMenuKitEnd, type OnSelectMenuKitSubmit, type OnStringSelectMenuKitSubmit, type OnUserSelectMenuKitSubmit, ParagraphInput, type ParsedCommandData, type ParsedEvent, type ParsedMessageCommand, type PluginTransformParameters, type PreparedAppCommandExecution, type ResolvableCommand, type ResolveBuilderInteraction, type ResolveKind, type ResolveResult, RoleSelectMenu, RoleSelectMenuKit, type RoleSelectMenuKitPredicate, type RoleSelectMenuProps, type RunCommand, RuntimePlugin, type SelectMenuKitPredicate, type SelectMenuProps, type Setup, ShortInput, type SlashCommand, type SlashCommandContext, type SlashCommandMiddlewareContext, StringSelectMenu, StringSelectMenuKit, type StringSelectMenuKitPredicate, 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 UserSelectMenuKitPredicate, 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 };