index.d.ts 567 B

1234567891011121314151617
  1. import { Separator, type Theme } from '@inquirer/core';
  2. import type { PartialDeep } from '@inquirer/type';
  3. type Choice<Value> = {
  4. value: Value;
  5. name?: string;
  6. short?: string;
  7. key?: string;
  8. };
  9. declare const _default: <Value>(config: {
  10. message: string;
  11. choices: readonly (string | Separator)[] | readonly (Separator | Choice<Value>)[];
  12. theme?: PartialDeep<Theme> | undefined;
  13. }, context?: import("@inquirer/type").Context) => Promise<Value> & {
  14. cancel: () => void;
  15. };
  16. export default _default;
  17. export { Separator } from '@inquirer/core';