import type { APIActionRowComponent, APIActionRowComponentTypes, APIBaseComponent, ComponentType } from "discord-api-types/v10"; export type AnyAPIActionRowComponent = APIActionRowComponentTypes | APIActionRowComponent; /** * @hidden */ export abstract class ComponentBuilderBase< DataType extends Partial> = APIBaseComponent > { /** * The API data associated with this component */ public readonly data: Partial; public abstract toJSON(): AnyAPIActionRowComponent; public constructor(data: Partial) { this.data = data; } }