import type { SchemaObject, ReferenceObject } from './types.js'; type DecomposeUnionArgs = { schema: SchemaObject; groupType: 'oneOf' | 'anyOf'; }; type DecomposeUnionReturn = { beforeExcluded: SchemaObject; decomposed: (SchemaObject | ReferenceObject)[]; afterExcluded: SchemaObject; }; export declare const decomposeUnion: ({ schema, groupType }: DecomposeUnionArgs) => DecomposeUnionReturn; /** * Is `key` a union-level key, kept on the union rather than merged into each * member? A specification extension (`x-…`) is one too: it says something * about the union, as Fern's `x-fern-property-name` renames the property, * and `toUnion` keeps it. Merged into each member, it was lost, and each * `$ref` member was resolved to merge it. */ export declare const isUnionLevelKey: (key: string) => boolean; export {};