import { ConstOrPromise } from '../generic-types'; import { ManyChoicesOptions } from '../choices'; export declare type ChooseActionFunc = (context: Context, key: string) => ConstOrPromise; export interface ChooseOptions extends ManyChoicesOptions { /** * Function which is called when the button is pressed. * The specific button which was pressed is given as second argument `key`. */ readonly do: ChooseActionFunc; }