import { SelectMenu, SelectMenuOptions } from 'eris'; import { AnyContext } from '../../contexts/AnyContext'; import { ComponentHandler, SelectHandler } from '../interfaces/ComponentHandler'; import { BaseComponent } from './BaseComponent'; import { PossiblyTranslatable } from '../../interfaces/Translatable'; export declare type SelectOption = SelectMenuOptions; export interface SelectOptionTranslatable extends Omit { label: PossiblyTranslatable; description?: PossiblyTranslatable; } export declare class Select extends BaseComponent { definition: SelectMenu; handler?: ComponentHandler; readonly maxOptions = 25; constructor(ctx: AnyContext, customId: string, handler?: SelectHandler); clearOptions(): this; setOptions(options: Array): this; setOptionsTranslated(options: Array): Promise; addOptions(options: Array): this; addOption(option: SelectMenuOptions): this; placeholder(placeholder: string): this; placeholderTranslated(key: string, repl?: Record, backup?: string): Promise; min(min: number): this; max(max: number): this; }