declare module 'prompts' { export interface PromptObject { type: string; name: T; message: string | ((prev: any, values: any) => string); initial?: any | ((prev: any) => any); choices?: Array<{ title: string; value: any }>; validate?: (value: any) => boolean | string | Promise; format?: (value: any) => any; onRender?: (kleur: any) => void; onState?: (state: any) => void; min?: number; max?: number; hint?: string; style?: 'default' | 'password' | 'invisible' | 'emoji'; instructions?: string | boolean; active?: string; inactive?: string; separator?: string; } export default function prompts( questions: PromptObject | Array>, options?: { onSubmit?: (prompt: PromptObject, answer: any, answers: any) => boolean | Promise; onCancel?: (prompt: PromptObject, answers: any) => boolean | Promise; } ): Promise>; }