/** * Inquirer Prompt Adapter - Inquirer.js implementation of the prompt adapter * * This is a concrete implementation of PromptAdapter using the Inquirer library. * The interfaces are defined separately to allow for other implementations (prompts, enquirer, etc.) * * Benefits: * - Implements library-agnostic PromptAdapter interface * - Can be swapped with other implementations without changing consumers * - Provides the familiar Inquirer API through the adapter */ import { type PromptAdapter, type PromptAnswers, type PromptQuestion, type PromptSeparator } from './prompt-adapter.interface.js'; /** * Inquirer Adapter Implementation * * Concrete implementation of PromptAdapter using the Inquirer library. */ export declare class InquirerAdapter implements PromptAdapter { /** * Separator class reference */ Separator: new (line?: string) => PromptSeparator; /** * Prompt user with questions */ prompt(questions: Array> | PromptQuestion, initialAnswers?: Partial): Promise; /** * Prompt user with questions, returning a handle that can cancel the * in-flight prompt from outside. */ promptCancellable(questions: Array> | PromptQuestion, initialAnswers?: Partial): { cancel: () => void; promise: Promise; }; /** * Create a separator for list/checkbox questions */ createSeparator(line?: string): PromptSeparator; } /** * Default adapter instance factory * This is used by the getPromptAdapter function in the interface */ export declare function createDefaultPromptAdapter(): PromptAdapter; //# sourceMappingURL=prompt-adapter.d.ts.map