commandkit 1.0.0-dev.20250511080231 → 1.0.0-dev.20250512141520

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
@@ -2,22 +2,10 @@ import * as discord_js from 'discord.js';
2
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, ContainerComponentData, ComponentBuilder, ContainerBuilder, FileComponentData, FileBuilder, MediaGalleryItemBuilder, MediaGalleryBuilder, ThumbnailBuilder, TextDisplayBuilder, SectionBuilder, SeparatorComponentData, SeparatorBuilder, TextDisplayComponentData, Message as Message$1, ApplicationCommandOptionType, GuildMember, Attachment, User, Role, CommandInteractionOption, ChatInputCommandInteraction, MessageContextMenuCommandInteraction, UserContextMenuCommandInteraction, AutocompleteInteraction, Guild, TextBasedChannel, Locale, Collection, SlashCommandBuilder, ContextMenuCommandBuilder } from 'discord.js';
3
3
  import EventEmitter from 'node:events';
4
4
  import { Channel } from 'diagnostics_channel';
5
+ import { DirectiveTransformerOptions } from 'directive-to-hof';
5
6
  import { AsyncLocalStorage } from 'node:async_hooks';
6
7
  import * as commander from 'commander';
7
8
 
8
- interface CacheEntry<T = unknown> {
9
- value: T;
10
- ttl?: number;
11
- }
12
- declare abstract class CacheProvider {
13
- abstract get<T>(key: string): Promise<CacheEntry<T> | undefined>;
14
- abstract set<T>(key: string, value: T, ttl?: number): Promise<void>;
15
- abstract exists(key: string): Promise<boolean>;
16
- abstract delete(key: string): Promise<void>;
17
- abstract clear(): Promise<void>;
18
- abstract expire(key: string, ttl: number): Promise<void>;
19
- }
20
-
21
9
  /**
22
10
  * Options for instantiating a CommandKit handler.
23
11
  */
@@ -26,11 +14,6 @@ interface CommandKitOptions {
26
14
  * The Discord.js client object to use with CommandKit.
27
15
  */
28
16
  client: Client;
29
- /**
30
- * The cache provider to use with CommandKit. Defaults to MemoryCache provider.
31
- * Set this to `null` to not use any cache provider.
32
- */
33
- cacheProvider?: CacheProvider | null;
34
17
  }
35
18
  /**
36
19
  * Represents a command context.
@@ -730,6 +713,12 @@ declare class MessageCommandOptions {
730
713
  }
731
714
 
732
715
  type GenericFunction<A extends any[] = any[]> = (...args: A) => any;
716
+ /**
717
+ * Represents an async function that can be cached
718
+ * @template R - Array of argument types
719
+ * @template T - Return type
720
+ */
721
+ type AsyncFunction<R extends any[] = any[], T = any> = (...args: R) => Promise<T>;
733
722
  declare function exitContext<T>(fn: () => T): T;
734
723
  declare function provideContext<R>(value: CommandKitEnvironment, receiver: () => R): R;
735
724
  /**
@@ -1109,124 +1098,6 @@ declare class MiddlewareContext<T extends CommandExecutionMode = CommandExecutio
1109
1098
  setCommandRunner(fn: RunCommand): void;
1110
1099
  }
1111
1100
 
1112
- declare class MemoryCache extends CacheProvider {
1113
- #private;
1114
- get<T>(key: string): Promise<CacheEntry<T> | undefined>;
1115
- set<T>(key: string, value: T, ttl?: number): Promise<void>;
1116
- exists(key: string): Promise<boolean>;
1117
- delete(key: string): Promise<void>;
1118
- clear(): Promise<void>;
1119
- expire(key: string, ttl: number): Promise<void>;
1120
- }
1121
-
1122
- /**
1123
- * Context for managing cache operations within an async scope
1124
- */
1125
- interface CacheContext {
1126
- params: {
1127
- /** Custom name for the cache entry */
1128
- name?: string;
1129
- /** Time-to-live in milliseconds */
1130
- ttl?: number;
1131
- };
1132
- }
1133
- /**
1134
- * Represents an async function that can be cached
1135
- * @template R - Array of argument types
1136
- * @template T - Return type
1137
- */
1138
- type AsyncFunction<R extends any[] = any[], T = any> = (...args: R) => Promise<T>;
1139
- /**
1140
- * Configuration options for cache behavior
1141
- */
1142
- interface CacheMetadata {
1143
- /** Time-to-live duration in milliseconds or as a string (e.g., '1h', '5m') */
1144
- ttl?: number | string;
1145
- /** Custom name for the cache entry */
1146
- name?: string;
1147
- }
1148
- /**
1149
- * Wraps an async function with caching capability
1150
- * @template R - Array of argument types
1151
- * @template F - Type of the async function
1152
- * @param fn - The async function to cache
1153
- * @param params - Optional cache configuration
1154
- * @returns The wrapped function with caching behavior
1155
- * @example
1156
- * ```ts
1157
- * const cachedFetch = cache(async (id: string) => {
1158
- * return await db.findOne(id);
1159
- * }, { ttl: '1h' });
1160
- * ```
1161
- */
1162
- declare function cache<R extends any[], F extends AsyncFunction<R>>(fn: F, params?: CacheMetadata): F;
1163
- /**
1164
- * Sets a custom identifier for the current cache operation
1165
- * @param tag - The custom cache tag
1166
- * @throws {Error} When called outside a cached function or without a tag
1167
- * @example
1168
- * ```ts
1169
- * const fetchUser = cache(async (id: string) => {
1170
- * cacheTag(`user:${id}`);
1171
- * return await db.users.findOne(id);
1172
- * });
1173
- * ```
1174
- */
1175
- declare function cacheTag(tag: string): void;
1176
- /**
1177
- * Sets the TTL for the current cache operation
1178
- * @param ttl - Time-to-live in milliseconds or as a string (e.g., '1h', '5m')
1179
- * @throws {Error} When called outside a cached function or with invalid TTL
1180
- * @example
1181
- * ```ts
1182
- * const fetchData = cache(async () => {
1183
- * cacheLife('30m');
1184
- * return await expensiveOperation();
1185
- * });
1186
- * ```
1187
- */
1188
- declare function cacheLife(ttl: number | string): void;
1189
- /**
1190
- * Removes a cached value by its tag
1191
- * @param tag - The cache tag to invalidate
1192
- * @throws {Error} When the cache key is not found
1193
- * @example
1194
- * ```ts
1195
- * await invalidate('user:123');
1196
- * ```
1197
- */
1198
- declare function invalidate(tag: string): Promise<void>;
1199
- /**
1200
- * Forces a refresh of cached data by its tag (on-demand revalidation)
1201
- * @template T - Type of the cached value
1202
- * @param tag - The cache tag to revalidate
1203
- * @param args - Arguments to pass to the cached function
1204
- * @returns Fresh data from the cached function
1205
- * @throws {Error} When the cache key or function is not found
1206
- * @example
1207
- * ```ts
1208
- * const freshData = await revalidate('user:123');
1209
- * ```
1210
- */
1211
- declare function revalidate<T = unknown>(tag: string, ...args: any[]): Promise<T>;
1212
- /**
1213
- * Checks if a function is wrapped with cache functionality
1214
- * @param fn - Function to check
1215
- * @returns True if the function is cached
1216
- * @example
1217
- * ```ts
1218
- * if (isCachedFunction(myFunction)) {
1219
- * console.log('Function is cached');
1220
- * }
1221
- * ```
1222
- */
1223
- declare function isCachedFunction(fn: GenericFunction): boolean;
1224
- /**
1225
- * @private
1226
- * @internal
1227
- */
1228
- declare const __SECRET_USE_CACHE_INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: any;
1229
-
1230
1101
  interface Command {
1231
1102
  id: string;
1232
1103
  name: string;
@@ -1461,10 +1332,18 @@ declare class CommandKitEventsChannel {
1461
1332
  removeAllListeners(namespace: string, event: string): void;
1462
1333
  }
1463
1334
 
1335
+ interface AppEventsHandlerLoadedData {
1336
+ name: string;
1337
+ namespace: string | null;
1338
+ onceListeners: number;
1339
+ regularListeners: number;
1340
+ metadata: ParsedEvent;
1341
+ }
1464
1342
  declare class AppEventsHandler {
1465
1343
  readonly commandkit: CommandKit;
1466
1344
  private loadedEvents;
1467
1345
  constructor(commandkit: CommandKit);
1346
+ getEvents(): AppEventsHandlerLoadedData[];
1468
1347
  reloadEvents(): Promise<void>;
1469
1348
  loadEvents(): Promise<void>;
1470
1349
  unregisterAll(): void;
@@ -1543,84 +1422,6 @@ interface Setup {
1543
1422
  onResolve(options: OnResolveOptions, cb: (args: OnResolveArgs) => Promise<OnResolveResult>): Promise<any>;
1544
1423
  }
1545
1424
 
1546
- type CommandKitPlugin = RuntimePlugin | CompilerPlugin;
1547
- type MaybeFalsey<T> = T | false | null | undefined;
1548
-
1549
- interface PluginTransformParameters {
1550
- args: OnLoadArgs;
1551
- path: string;
1552
- contents: string | Uint8Array;
1553
- loader?: Loader;
1554
- }
1555
- interface TransformedResult {
1556
- contents?: string | Uint8Array;
1557
- loader?: Loader;
1558
- }
1559
- interface ResolveResult {
1560
- path?: string;
1561
- external?: boolean;
1562
- }
1563
- declare abstract class CompilerPlugin<T extends PluginOptions = PluginOptions> extends PluginCommon<T, CompilerPluginRuntime> {
1564
- /**
1565
- * Called when transformation is requested to this plugin
1566
- * @param params The parameters for the transformation
1567
- * @returns The transformed result
1568
- */
1569
- transform(params: PluginTransformParameters): Promise<MaybeFalsey<TransformedResult>>;
1570
- /**
1571
- * Called when a resolve is requested to this plugin
1572
- * @param args The arguments for the resolve
1573
- * @returns The resolved result
1574
- */
1575
- resolve(args: OnResolveArgs): Promise<MaybeFalsey<ResolveResult>>;
1576
- /**
1577
- * Called when a build is started
1578
- */
1579
- onBuildStart(): Promise<void>;
1580
- /**
1581
- * Called when a build is ended
1582
- */
1583
- onBuildEnd(): Promise<void>;
1584
- }
1585
- declare function isCompilerPlugin(plugin: unknown): plugin is CompilerPlugin;
1586
-
1587
- declare class CompilerPluginRuntime {
1588
- private readonly plugins;
1589
- readonly name = "CompilerPluginRuntime";
1590
- constructor(plugins: CompilerPlugin[]);
1591
- isEmpty(): boolean;
1592
- private onLoad;
1593
- private onResolve;
1594
- private onStart;
1595
- private onEnd;
1596
- private onDispose;
1597
- private onInit;
1598
- cleanup(): Promise<void>;
1599
- setup(build: Setup): Promise<void>;
1600
- toEsbuildPlugin(): {
1601
- name: string;
1602
- setup: (build: Setup) => Promise<void>;
1603
- };
1604
- }
1605
- declare function fromEsbuildPlugin(plugin: any): typeof CompilerPlugin;
1606
-
1607
- type CommonPluginRuntime = CommandKitPluginRuntime | CompilerPluginRuntime;
1608
-
1609
- type PluginOptions = Record<string, any>;
1610
- declare abstract class PluginCommon<T extends PluginOptions = PluginOptions, C extends CommonPluginRuntime = CommonPluginRuntime> {
1611
- protected readonly options: T;
1612
- abstract readonly name: string;
1613
- constructor(options: T);
1614
- /**
1615
- * Called when this plugin is activated
1616
- */
1617
- activate(ctx: C): Promise<void>;
1618
- /**
1619
- * Called when this plugin is deactivated
1620
- */
1621
- deactivate(ctx: C): Promise<void>;
1622
- }
1623
-
1624
1425
  declare const COMMANDKIT_CACHE_TAG: unique symbol;
1625
1426
  declare const COMMANDKIT_IS_DEV: boolean;
1626
1427
  declare const COMMANDKIT_IS_TEST: boolean;
@@ -1643,6 +1444,7 @@ interface CommandKitHMREvent {
1643
1444
  }
1644
1445
 
1645
1446
  declare abstract class RuntimePlugin<T extends PluginOptions = PluginOptions> extends PluginCommon<T, CommandKitPluginRuntime> {
1447
+ readonly type = PluginType.Runtime;
1646
1448
  /**
1647
1449
  * Called before commands are loaded
1648
1450
  */
@@ -1742,10 +1544,108 @@ declare abstract class RuntimePlugin<T extends PluginOptions = PluginOptions> ex
1742
1544
  }
1743
1545
  declare function isRuntimePlugin(plugin: unknown): plugin is RuntimePlugin;
1744
1546
 
1547
+ type CommandKitPlugin = RuntimePlugin | CompilerPlugin;
1548
+ type MaybeFalsey<T> = T | false | null | undefined;
1549
+
1550
+ interface PluginTransformParameters {
1551
+ args: OnLoadArgs;
1552
+ path: string;
1553
+ contents: string | Uint8Array;
1554
+ loader?: Loader;
1555
+ }
1556
+ interface TransformedResult {
1557
+ contents?: string | Uint8Array;
1558
+ loader?: Loader;
1559
+ }
1560
+ interface ResolveResult {
1561
+ path?: string;
1562
+ external?: boolean;
1563
+ }
1564
+ declare abstract class CompilerPlugin<T extends PluginOptions = PluginOptions> extends PluginCommon<T, CompilerPluginRuntime> {
1565
+ readonly type = PluginType.Compiler;
1566
+ /**
1567
+ * Called when transformation is requested to this plugin
1568
+ * @param params The parameters for the transformation
1569
+ * @returns The transformed result
1570
+ */
1571
+ transform(params: PluginTransformParameters): Promise<MaybeFalsey<TransformedResult>>;
1572
+ /**
1573
+ * Called when a resolve is requested to this plugin
1574
+ * @param args The arguments for the resolve
1575
+ * @returns The resolved result
1576
+ */
1577
+ resolve(args: OnResolveArgs): Promise<MaybeFalsey<ResolveResult>>;
1578
+ /**
1579
+ * Called when a build is started
1580
+ */
1581
+ onBuildStart(): Promise<void>;
1582
+ /**
1583
+ * Called when a build is ended
1584
+ */
1585
+ onBuildEnd(): Promise<void>;
1586
+ }
1587
+ declare function isCompilerPlugin(plugin: unknown): plugin is CompilerPlugin;
1588
+
1589
+ type CommonDirectiveTransformerOptions = DirectiveTransformerOptions & {
1590
+ enabled?: boolean;
1591
+ };
1592
+ declare abstract class CommonDirectiveTransformer extends CompilerPlugin<CommonDirectiveTransformerOptions> {
1593
+ private transformer;
1594
+ activate(ctx: CompilerPluginRuntime): Promise<void>;
1595
+ deactivate(ctx: CompilerPluginRuntime): Promise<void>;
1596
+ transform(params: PluginTransformParameters): Promise<MaybeFalsey<TransformedResult>>;
1597
+ }
1598
+
1599
+ declare class CompilerPluginRuntime {
1600
+ private readonly plugins;
1601
+ readonly name = "CompilerPluginRuntime";
1602
+ constructor(plugins: CompilerPlugin[]);
1603
+ getPlugins(): CompilerPlugin<PluginOptions>[];
1604
+ isEmpty(): boolean;
1605
+ private onLoad;
1606
+ private onResolve;
1607
+ private onStart;
1608
+ private onEnd;
1609
+ private onDispose;
1610
+ private onInit;
1611
+ cleanup(): Promise<void>;
1612
+ setup(build: Setup): Promise<void>;
1613
+ toEsbuildPlugin(): {
1614
+ name: string;
1615
+ setup: (build: Setup) => Promise<void>;
1616
+ };
1617
+ }
1618
+ declare function fromEsbuildPlugin(plugin: any): typeof CompilerPlugin;
1619
+
1620
+ type CommonPluginRuntime = CommandKitPluginRuntime | CompilerPluginRuntime;
1621
+
1622
+ type PluginOptions = Record<string, any>;
1623
+ declare enum PluginType {
1624
+ Compiler = "compiler",
1625
+ Runtime = "runtime"
1626
+ }
1627
+ declare abstract class PluginCommon<T extends PluginOptions = PluginOptions, C extends CommonPluginRuntime = CommonPluginRuntime> {
1628
+ protected readonly options: T;
1629
+ abstract readonly type: PluginType;
1630
+ readonly id: `${string}-${string}-${string}-${string}-${string}`;
1631
+ readonly loadedAt: number;
1632
+ abstract readonly name: string;
1633
+ constructor(options: T);
1634
+ /**
1635
+ * Called when this plugin is activated
1636
+ */
1637
+ activate(ctx: C): Promise<void>;
1638
+ /**
1639
+ * Called when this plugin is deactivated
1640
+ */
1641
+ deactivate(ctx: C): Promise<void>;
1642
+ }
1643
+
1745
1644
  declare class CommandKitPluginRuntime {
1746
1645
  readonly commandkit: CommandKit;
1747
1646
  private plugins;
1748
1647
  constructor(commandkit: CommandKit);
1648
+ getPlugins(): Collection<string, RuntimePlugin<PluginOptions>>;
1749
1649
  getPlugin(pluginName: string): RuntimePlugin | null;
1750
1650
  softRegisterPlugin(plugin: RuntimePlugin): Promise<void>;
1751
1651
  registerPlugin(plugin: RuntimePlugin): Promise<void>;
@@ -1834,15 +1734,6 @@ declare class CommandKit extends EventEmitter {
1834
1734
  * @param locale The default locale.
1835
1735
  */
1836
1736
  setDefaultLocale(locale: Locale): this;
1837
- /**
1838
- * Sets the cache provider.
1839
- * @param provider The cache provider.
1840
- */
1841
- setCacheProvider(provider: CacheProvider): this;
1842
- /**
1843
- * Resolves the current cache provider.
1844
- */
1845
- getCacheProvider(): CacheProvider | null;
1846
1737
  /**
1847
1738
  * Get the client attached to this CommandKit instance.
1848
1739
  */
@@ -1877,7 +1768,7 @@ interface CommandKitConfig {
1877
1768
  /**
1878
1769
  * The plugins to use with CommandKit.
1879
1770
  */
1880
- plugins?: MaybeArray<CommandKitPlugin[]>;
1771
+ plugins?: CommandKitPlugin[] | Array<CommandKitPlugin[]>;
1881
1772
  /**
1882
1773
  * The esbuild plugins to use with CommandKit.
1883
1774
  */
@@ -1896,15 +1787,6 @@ interface CommandKitConfig {
1896
1787
  */
1897
1788
  development?: boolean;
1898
1789
  };
1899
- /**
1900
- * Cached function compiler configuration.
1901
- */
1902
- cache?: {
1903
- /**
1904
- * Whether to enable caching of compiled functions in development mode.
1905
- */
1906
- development?: boolean;
1907
- };
1908
1790
  };
1909
1791
  /**
1910
1792
  * The typescript configuration to use with CommandKit.
@@ -2064,4 +1946,4 @@ declare function getEventWorkerContext(): EventWorkerContext;
2064
1946
  */
2065
1947
  declare function bootstrapCommandkitCLI(argv: string[], options?: commander.ParseOptions | undefined): Promise<void>;
2066
1948
 
2067
- export { ActionRow, type ActionRowProps, type AnyCommandExecute, type AnyCommandKitElement, AppCommandHandler, type AsyncFunction, type AutocompleteCommand, type AutocompleteCommandContext, type AutocompleteCommandMiddlewareContext, type BootstrapFunction, Button, type ButtonChildrenLike, ButtonKit, type ButtonKitPredicate, type ButtonProps, COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CACHE_TAG, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, type CacheContext, type CacheEntry, type CacheMetadata, CacheProvider, ChannelSelectMenu, ChannelSelectMenuKit, type ChannelSelectMenuKitPredicate, type ChannelSelectMenuProps, type ChatInputCommand, type ChatInputCommandContext, type Command, type CommandBuilderLike, 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 CommandKitHMREvent, type CommandKitLoggerOptions, type CommandKitModalBuilderInteractionCollectorDispatch, type CommandKitModalBuilderInteractionCollectorDispatchContextData, type CommandKitModalBuilderOnEnd, type CommandKitOptions, type CommandKitPlugin, CommandKitPluginRuntime, type CommandKitSelectMenuBuilderInteractionCollectorDispatch, type CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, type CommandKitSelectMenuBuilderOnEnd, CommandRegistrar, type CommandSource, type CommandTypeData, CommandsRouter, type CommandsRouterOptions, type CommonBuilderKit, type CommonPluginRuntime, type CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Container, type ContainerProps, Context, type ContextParameters, DefaultLogger, ElementType, EventInterceptor, type EventInterceptorContextData, type EventInterceptorErrorHandler, type EventWorkerContext, EventsRouter, type EventsRouterOptions, type EventsTree, File, type FileProps, Fragment, type FragmentElementProps, type GenericFunction, HMREventType, type ILogger, type InteractionCommandContext, type InteractionCommandMiddlewareContext, type LoadedCommand, type Loader, type Location, Logger, type LoggerImpl, type MaybeArray, type MaybeFalsey, MediaGallery, MediaGalleryItem, type MediaGalleryItemProps, type MediaGalleryProps, 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 PreRegisterCommandsEvent, type PreparedAppCommandExecution, type ResolvableCommand, type ResolveBuilderInteraction, type ResolveKind, type ResolveResult, RoleSelectMenu, RoleSelectMenuKit, type RoleSelectMenuKitPredicate, type RoleSelectMenuProps, type RunCommand, RuntimePlugin, Section, type SectionProps, type SelectMenuKitPredicate, type SelectMenuProps, Separator, type SeparatorProps, type Setup, ShortInput, type SlashCommandMiddlewareContext, StopEventPropagationError, StringSelectMenu, StringSelectMenuKit, type StringSelectMenuKitPredicate, StringSelectMenuOption, type StringSelectMenuOptionProps, type StringSelectMenuProps, TextDisplay, type TextDisplayProps, TextInput, type TextInputProps, Thumbnail, type ThumbnailProps, type TransformedResult, type UserContextMenuCommand, type UserContextMenuCommandContext, type UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, type UserSelectMenuKitPredicate, type UserSelectMenuProps, __SECRET_USE_CACHE_INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, after, bootstrapCommandkitCLI, cache, cacheLife, cacheTag, cancelAfter, commandkit, createElement, createLogger, debounce, CommandKit as default, defineConfig, devOnly, eventWorkerContext, exitContext, exitMiddleware, fromEsbuildPlugin, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, invalidate, isCachedFunction, isCommandKitElement, isCompilerPlugin, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, redirect, rethrow, revalidate, runInEventWorkerContext, stopEvents, useEnvironment, version };
1949
+ export { ActionRow, type ActionRowProps, type AnyCommandExecute, type AnyCommandKitElement, AppCommandHandler, type AsyncFunction, type AutocompleteCommand, type AutocompleteCommandContext, type AutocompleteCommandMiddlewareContext, type BootstrapFunction, Button, type ButtonChildrenLike, ButtonKit, type ButtonKitPredicate, type ButtonProps, COMMANDKIT_BOOTSTRAP_MODE, COMMANDKIT_CACHE_TAG, COMMANDKIT_IS_DEV, COMMANDKIT_IS_TEST, ChannelSelectMenu, ChannelSelectMenuKit, type ChannelSelectMenuKitPredicate, type ChannelSelectMenuProps, type ChatInputCommand, type ChatInputCommandContext, type Command, type CommandBuilderLike, 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 CommandKitHMREvent, type CommandKitLoggerOptions, type CommandKitModalBuilderInteractionCollectorDispatch, type CommandKitModalBuilderInteractionCollectorDispatchContextData, type CommandKitModalBuilderOnEnd, type CommandKitOptions, type CommandKitPlugin, CommandKitPluginRuntime, type CommandKitSelectMenuBuilderInteractionCollectorDispatch, type CommandKitSelectMenuBuilderInteractionCollectorDispatchContextData, type CommandKitSelectMenuBuilderOnEnd, CommandRegistrar, type CommandSource, type CommandTypeData, CommandsRouter, type CommandsRouterOptions, type CommonBuilderKit, CommonDirectiveTransformer, type CommonDirectiveTransformerOptions, type CommonPluginRuntime, type CommonSelectMenuProps, CompilerPlugin, CompilerPluginRuntime, Container, type ContainerProps, Context, type ContextParameters, DefaultLogger, ElementType, EventInterceptor, type EventInterceptorContextData, type EventInterceptorErrorHandler, type EventWorkerContext, EventsRouter, type EventsRouterOptions, type EventsTree, File, type FileProps, Fragment, type FragmentElementProps, type GenericFunction, HMREventType, type ILogger, type InteractionCommandContext, type InteractionCommandMiddlewareContext, type LoadedCommand, type Loader, type Location, Logger, type LoggerImpl, type MaybeArray, type MaybeFalsey, MediaGallery, MediaGalleryItem, type MediaGalleryItemProps, type MediaGalleryProps, 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 PreRegisterCommandsEvent, type PreparedAppCommandExecution, type ResolvableCommand, type ResolveBuilderInteraction, type ResolveKind, type ResolveResult, RoleSelectMenu, RoleSelectMenuKit, type RoleSelectMenuKitPredicate, type RoleSelectMenuProps, type RunCommand, RuntimePlugin, Section, type SectionProps, type SelectMenuKitPredicate, type SelectMenuProps, Separator, type SeparatorProps, type Setup, ShortInput, type SlashCommandMiddlewareContext, StopEventPropagationError, StringSelectMenu, StringSelectMenuKit, type StringSelectMenuKitPredicate, StringSelectMenuOption, type StringSelectMenuOptionProps, type StringSelectMenuProps, TextDisplay, type TextDisplayProps, TextInput, type TextInputProps, Thumbnail, type ThumbnailProps, type TransformedResult, type UserContextMenuCommand, type UserContextMenuCommandContext, type UserContextMenuCommandMiddlewareContext, UserSelectMenu, UserSelectMenuKit, type UserSelectMenuKitPredicate, type UserSelectMenuProps, after, bootstrapCommandkitCLI, cancelAfter, commandkit, createElement, createLogger, debounce, CommandKit as default, defineConfig, devOnly, eventWorkerContext, exitContext, exitMiddleware, fromEsbuildPlugin, getCommandKit, getConfig, getContext, getCurrentDirectory, getElement, getEventWorkerContext, getSourceDirectories, isCommandKitElement, isCompilerPlugin, isInteractionSource, isMessageSource, isRuntimePlugin, makeContextAwareFunction, onApplicationBootstrap, onBootstrap, provideContext, redirect, rethrow, runInEventWorkerContext, stopEvents, useEnvironment, version };