/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 50f74499a327
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
/** @internal */
export const CompletionArgsStop$inboundSchema = smartUnion([z.string(), z.array(z.string())]);
/** @internal */
export const CompletionArgsStop$outboundSchema = smartUnion([z.string(), z.array(z.string())]);
export function completionArgsStopToJSON(completionArgsStop) {
    return JSON.stringify(CompletionArgsStop$outboundSchema.parse(completionArgsStop));
}
export function completionArgsStopFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CompletionArgsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompletionArgsStop' from JSON`);
}
//# sourceMappingURL=completionargsstop.js.map