import { JSONSchema4 } from 'json-schema'; type Union = 'anyOf' | 'oneOf' | 'allOf'; /** * Safely selects a union type if exactly one union type is defined. * * @returns the selected union type or undefined if no union type is defined or if more than one union type is defined */ export declare function safeSelectUnion(def: JSONSchema4, allow?: Union[]): JSONSchema4[] | undefined; /** * Returns the name of the union type if exactly one union type is defined. */ export declare function exactlyOneUnion(def: JSONSchema4, allow?: Union[]): Union | undefined; /** * Removes any of the union types from the schema. */ export declare function removeUnions(def: JSONSchema4, allow?: Union[]): JSONSchema4; export {};