import { ListrPromptAdapter } from "listr2"; import { Prompt } from "@inquirer/type"; //#region src/prompt.d.ts declare class ListrInquirerPromptAdapter extends ListrPromptAdapter { private prompt; private signal; /** * Get the current running instance of `inquirer`. */ get instance(): Promise; /** * Create a new prompt with `inquirer`. */ run = Prompt>(prompt: T, ...[config, context]: Parameters): Promise>; /** * Cancel the ongoing prompt. */ cancel(): void; } //#endregion export { ListrInquirerPromptAdapter };