import MuteStream from 'mute-stream';
import type { Prompt, Context } from '@inquirer/type';
type RenderOptions = Omit<Context, 'input' | 'output'>;
export declare function render<Value, const Config>(prompt: Prompt<Value, Config>, config: Config, options?: RenderOptions): 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: ({ raw }?: {
        raw?: boolean;
    }) => Promise<string>;
    nextRender: () => Promise<void>;
}>;
export {};
