import type { OpenAPIV3 } from 'openapi-types'; import type { ParseContextType } from '../../../context/parseTypes.js'; import { OasUnion } from '../../../oas/union/Union.js'; import type { StackTrail } from '../../../context/StackTrail.js'; export type ToUnionArgs = { value: OpenAPIV3.SchemaObject; members: (OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject)[]; parentType: 'anyOf' | 'oneOf'; stackTrail: StackTrail; context: ParseContextType; }; export declare const toUnion: ({ value, members, parentType, stackTrail, context }: ToUnionArgs) => OasUnion;