UNPKG

@inquirer/testing

Version:
20 lines (19 loc) 605 B
import MuteStream from 'mute-stream'; import type { Prompt, Context } from '@inquirer/type'; export declare function render<Value, const Config>(prompt: Prompt<Value, Config>, config: Config, options?: Context): Promise<{ answer: Promise<Value>; input: MuteStream; events: { keypress: (key: string | { name?: string; ctrl?: boolean; meta?: boolean; shift?: boolean; }) => void; type: (text: string) => void; }; getScreen: ({ raw }?: { raw?: boolean; }) => string; getFullOutput: () => string; }>;