import type { GraphQLInterfaceType } from 'graphql'; import { OasUnion } from '../../oas/union/Union.js'; import type { ParseContextType } from '../../context/parseTypes.js'; import type { StackTrail } from '../../context/StackTrail.js'; export type ToInterfaceUnionArgs = { interfaceType: GraphQLInterfaceType; context: ParseContextType; stackTrail: StackTrail; }; /** * Builds an `OasUnion` over the implementers of a GraphQL interface. * * The interface itself is registered separately as an `OasObject` (via * {@link toObjectType}) so generators that want to emit a base type/ * interface can. The union returned here is a sibling registry entry * holding the discriminated union of concrete implementers — the * representation closer to what a typed client cares about at a usage * site. * * Each implementer ref records its consumer location via `registerRef` * so if an implementer type fails to parse the union's reference to it * can be pruned at the end of parsing. * * Per the v1 design decision, the parser emits both forms by default; * generators select whichever they prefer. */ export declare const toInterfaceUnion: ({ interfaceType, context, stackTrail }: ToInterfaceUnionArgs) => OasUnion;