import { RequestTypes } from 'detritus-client-rest'; import { BaseSet } from '../../collections/baseset'; import { MessageComponentTypes } from '../../constants'; import { Structure } from '../../structures/basestructure'; import { Emoji } from '../../structures/emoji'; import { ComponentOnError, ComponentRun } from './components'; import { ComponentContext } from './context'; import { ComponentSelectMenuOptionData } from './selectmenu'; export declare type ComponentEmojiData = { animated?: boolean; id?: null | string; name: string; } | string | Emoji; export interface ComponentActionData { custom_id?: string; customId?: string; disabled?: boolean; emoji?: ComponentEmojiData; label?: string; max_values?: number; maxValues?: number; min_values?: number; minValues?: number; options?: Array; placeholder?: string; style?: number; type?: number; url?: string; run?: ComponentRun; onError?: ComponentOnError; } export declare class ComponentActionBase extends Structure { readonly _keys: BaseSet; customId?: null | string; type: MessageComponentTypes; run?(context: ComponentContext): Promise | any; onError?(context: ComponentContext, error: Error): Promise | any; constructor(data?: ComponentActionData); toJSON(): RequestTypes.RawChannelMessageComponent; }