export type RefNode = Partial & { $ref: string; '$ref-value'?: Node; }; export type NodeInput = Node | RefNode; /** * Transform for getResolvedRef that merges sibling properties of a $ref wrapper * onto the dereferenced value. Wrapper siblings take precedence over the resolved value, * which matches OpenAPI 3.1 semantics where annotations alongside $ref override the target. */ export declare const mergeSiblingReferences: (node: RefNode) => Node; /** * Resolves a node that may be a $ref object to its actual value. * If the node contains a $ref, applies the provided transform (default: returns '$ref-value'). * Otherwise, returns the node as-is. */ export declare function getResolvedRef(node: NodeInput, transform: (node: RefNode) => Result): Node | Result; export declare function getResolvedRef(node: { $ref: string; '$ref-value': Node; }): Node; export declare function getResolvedRef(node: NodeInput): Node | undefined; /** * Type helper we can use if we have getResolvedRef higher in the stack */ export type Dereference = T extends { $ref: string; '$ref-value'?: infer V; } ? (V extends object ? V : never) : T; //# sourceMappingURL=get-resolved-ref.d.ts.map