import { z } from 'zod';
export const setupInputSchema = z.discriminatedUnion('kind', [
    z.object({ kind: z.literal('text'), value: z.string() }),
    z.object({ kind: z.literal('confirm'), value: z.boolean() }),
    z.object({ kind: z.literal('choice'), value: z.string() }),
    z.object({ kind: z.literal('multiSelect'), value: z.array(z.string()) }),
]);
export function serializeSetupInput(input) {
    if (input.kind === 'text') {
        return input.value;
    }
    return JSON.stringify(input.value);
}
//# sourceMappingURL=setupInput.schema.js.map