@japofc/baileys - v2.4.7
    Preparing search index...

    Interface FlowStep

    Conversation flows — multi-step wizards per (chat, user).

    interface FlowStep {
        choices?: string[];
        default?: unknown;
        id: string;
        optional?: boolean;
        parse?: (text: string) => unknown;
        prompt?: string | ((answers: Record<string, unknown>) => string);
        validate?: (
            text: string,
            answers: Record<string, unknown>,
        ) => string | boolean | Promise<string | boolean>;
    }
    Index
    choices?: string[]

    Fixed options: rendered numbered, answered by text or number.

    default?: unknown
    id: string
    optional?: boolean

    Step can be skipped with 'skip'/'lewati' (stores default ?? null).

    parse?: (text: string) => unknown

    Transform the accepted text before storing.

    prompt?: string | ((answers: Record<string, unknown>) => string)

    Text or a function of the answers collected so far.

    validate?: (
        text: string,
        answers: Record<string, unknown>,
    ) => string | boolean | Promise<string | boolean>

    Return true/undefined to accept; a string re-prompts with that message.