import type { APIActionRowComponentTypes, APIModalInteractionResponseCallbackData } from "discord-api-types/v10"; import { HandledInteraction } from "../handlers/HandledInteraction.js"; export declare abstract class ComponentBase Data; }, Context> extends HandledInteraction { id: string; allowExpired: boolean; parentCommand?: string; constructor(id: string, builder: Builder, handler: (ctx: Context) => Promise); protected getInstanceData(state: string): Data; /** Set the component ID */ setId(id: string): this; /** Set whether component execution should continue when state data has expired */ setAllowExpired(value: boolean): this; }