import { APIApplicationCommandOptionChoice } from "discord-api-types/v10"; import { ChatInputCommandInteraction } from "discord.js"; import { ResolvesTo } from "../../base/index.js"; import { GlobalCommand } from "../types.js"; import { SlashModuleClass } from "./module.js"; export declare namespace V2Decorators { interface Params { type?: keyof Param.Types; name?: string; description?: string; required?: boolean; choices?: ResolvesTo; autocomplete?: boolean; } interface Data { name?: string; description?: string; long_description?: string; params?: Record; guild_ids?: string[] | GlobalCommand; } } export declare const V2Stores: Record>; export declare function Guilds(guild_ids: string[] | GlobalCommand): (mod: SlashModuleClass, key: string, _: unknown) => void; type SlashCommandReturnType = (mod: SlashModuleClass, key: string, descriptor: unknown) => void; export declare function SlashCommand(description: string): SlashCommandReturnType; export declare function Help(long_description: string): (mod: SlashModuleClass, key: string, _: unknown) => void; export declare namespace SlashCommand { type Context = ChatInputCommandInteraction; } export declare function getArgumentStore(mod: SlashModuleClass, propertyKey: string): Record; export declare namespace Param { function paramsFactory(type: keyof Types): (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; type ParamOptions = { required?: boolean; autocomplete?: boolean; }; /** Add a Boolean Option with template description for ephmeral option */ const Ephemeral: (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Ephemeral { type Type = Types["Boolean"] | null; } type ACO = ResolvesTo[] | T[]>; function Choices(choices: T extends string ? ACO : T extends number ? ACO : never): (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; function paramsDecorator(type: keyof Types, description: string | undefined, option?: ParamOptions): (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; type NR any> = NonNullable>; type CIO = ChatInputCommandInteraction["options"]; type Types = { Attachment: NR; Boolean: NR; Channel: NR; Integer: NR; Mentionable: NR; Number: NR; Role: NR; String: NR; User: NR; }; const Attachment: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Attachment { type Type = Types["Attachment"]; type Nullable = Type | null; } const Boolean: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Boolean { type Type = Types["Boolean"]; type Nullable = Type | null; } const Channel: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Channel { type Type = Types["Channel"]; type Nullable = Type | null; } const Integer: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Integer { type Type = Types["Integer"]; type Nullable = Type | null; } const Mentionable: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Mentionable { type Type = Types["Mentionable"]; type Nullable = Type | null; } const Number: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Number { type Type = Types["Number"]; type Nullable = Type | null; } const Role: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace Role { type Type = Types["Role"]; type Nullable = Type | null; } const String: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace String { type Type = Types["String"]; type Nullable = Type | null; } const User: (description: string, option?: ParamOptions) => (mod: SlashModuleClass, propertyKey: string, parameterIndex: number) => void; namespace User { type Type = Types["User"]; type Nullable = Type | null; } } export {}; //# sourceMappingURL=decorators.d.ts.map