import { ConstrainedMetaModel } from '@asyncapi/modelina'; import { TypeScriptRenderer } from '@asyncapi/modelina/lib/types/generators/typescript/TypeScriptRenderer'; import { BaseGeneratorContext } from './validation'; /** * Configuration options for the union preset */ export interface UnionPresetOptions { /** Whether to include validation methods in generated union types */ includeValidation: boolean; } /** * Creates a union preset that adds marshalling/unmarshalling methods to union types * * @param options Configuration for union generation * @param context Generator context containing input type information * @returns Modelina preset object with union marshalling functionality * * @example * ```typescript * const preset = createUnionPreset({ * includeValidation: true * }, context); * ``` */ export declare function createUnionPreset(options: UnionPresetOptions, context: BaseGeneratorContext): { type: { self({ model, content, renderer }: { model: ConstrainedMetaModel; content: string; renderer: TypeScriptRenderer; }): string; }; };