import type { ManyChoicesOptions } from '../choices/index.ts'; import type { ConstOrPromise } from '../generic-types.ts'; export 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; }