import { getInteractionResponders } from "@elara-services/utils"; import { GuildMember, ModalSubmitInteraction, type AnySelectMenuInteraction, type ButtonInteraction, type Collection, type Interaction } from "discord.js"; import { Status } from "./interfaces"; export declare function handleComponentInteractions>(i: I, components: Collection): Promise | import("discord.js").InteractionResponse>; export declare const build: { component: >(options: O) => O; components: { button: (options: BuildComponentOptions) => BuildComponentOptions>; select: (options: BuildComponentOptions) => BuildComponentOptions; }; modal: (options: BuildComponentOptions) => BuildComponentOptions>; }; export interface BuildComponentOptions { enabled?: boolean; type?: "BUTTON" | "SELECT_MENU" | "MODAL"; /** * The filter to use to execute the run function for the component */ customId: (i: I) => boolean; locked?: Partial<{ /** If the button should be locked to the original interaction user. */ originalUser: boolean; /** This custom ID will be locked to these users only. */ users: string[]; /** This custom ID will be locked to these roles only. */ roles: string[]; /** This custom ID will be locked to these permissions only. */ permissions: (member: GuildMember) => Status; }>; execute: (i: I, r: getInteractionResponders) => Promise | unknown; }