You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
760 B
20 lines
760 B
declare type InteractionOptions = {
|
|
pause: boolean;
|
|
canEscape?: boolean;
|
|
};
|
|
declare type InteractionCallback = (options: InteractionOptions) => void;
|
|
/**
|
|
* Used to pause/resume interaction observers while prompting (made for TerminalUI).
|
|
*
|
|
* @param callback
|
|
*/
|
|
export declare function addInteractionListener(callback: InteractionCallback): void;
|
|
export declare function removeInteractionListener(callback: InteractionCallback): void;
|
|
export declare function pauseInteractions(options?: Omit<InteractionOptions, 'pause'>): void;
|
|
export declare function resumeInteractions(options?: Omit<InteractionOptions, 'pause'>): void;
|
|
export declare function confirmAsync(options: {
|
|
initial?: boolean;
|
|
message: string;
|
|
}): Promise<boolean>;
|
|
export {};
|