import type { APIButtonComponent, APIButtonComponentWithCustomId, APIButtonComponentWithURL, APIMessageComponentEmoji } from "discord-api-types/v10"; import { ComponentBuilderBase } from "./ComponentBuilderBase.js"; export declare enum ButtonStyle { Primary = 1, Secondary = 2, Success = 3, Danger = 4, Link = 5 } declare abstract class ButtonBuilderBase extends ComponentBuilderBase { constructor(data?: Partial | ButtonStyle, label?: string); /** * Sets the style of this button * @param style The style of the button */ setStyle(style: ButtonStyle): this; /** * Sets the emoji to display on this button * @param emoji The emoji to display on this button */ setEmoji(emoji: APIMessageComponentEmoji): this; /** * Sets whether this button is disable or not * @param disabled Whether or not to disable this button or not */ setDisabled(disabled?: boolean): this; /** * Sets the label for this button * @param label The label to display on this button */ setLabel(label: string): this; toJSON(): APIButtonComponent; } /** * Represents a non-validated button component */ export declare class ButtonBuilder extends ButtonBuilderBase { /** * Sets the custom Id for this button * @param customId The custom id to use for this button */ setCustomId(customId: string): this; toJSON(): APIButtonComponentWithCustomId; } export declare class LinkButtonBuilder extends ButtonBuilderBase { /** * Sets the URL for this button * @param url The URL to open when this button is clicked */ setURL(url: string): this; toJSON(): APIButtonComponentWithURL; } export {};