1 | import prompts, { Options, PromptObject } from 'prompts';
|
2 | type PromptOptions = {
|
3 | nonInteractiveHelp?: string;
|
4 | } & Options;
|
5 | type InteractionOptions = {
|
6 | pause: boolean;
|
7 | canEscape?: boolean;
|
8 | };
|
9 | type InteractionCallback = (options: InteractionOptions) => void;
|
10 | export declare function prompt<T extends string>(question: PromptObject, options?: PromptOptions): Promise<prompts.Answers<T>>;
|
11 | export declare function pauseInteractions(options?: Omit<InteractionOptions, 'pause'>): void;
|
12 |
|
13 | export declare function resumeInteractions(options?: Omit<InteractionOptions, 'pause'>): void;
|
14 |
|
15 | export declare function addInteractionListener(callback: InteractionCallback): void;
|
16 | export {};
|
17 |
|
\ | No newline at end of file |