import type { OpenAPIV3_1 } from 'openapi-types'; import type { SiblingKeywords } from '../../../oas/schema/siblings.js'; import type { OasRefData } from '../../../oas/ref/ref-types.js'; import type { ParseContextType } from '../../../context/parseTypes.js'; import { OasRef } from '../../../oas/ref/Ref.js'; import type { StackTrail } from '../../../context/StackTrail.js'; type ToRefV31Args = { ref: OpenAPIV3_1.ReferenceObject; refType: T; stackTrail: StackTrail; context: ParseContextType; /** * Use-site nullability to stamp on the OasRef node. Passed explicitly * by the single-member `oneOf`/`anyOf` collapse for a nullable * reference; omitted everywhere else (a plain `$ref` is non-nullable). */ nullable?: boolean; /** Use-site `readOnly` and `writeOnly` (see `RefFields.readOnly`): from a one-member `allOf`. */ readOnly?: boolean; writeOnly?: boolean; /** The other keywords next to the reference in a one-member `allOf`, for `RefFields` (see `SiblingKeywords`). */ siblings?: SiblingKeywords; }; export declare const toRefV31: ({ ref, refType, stackTrail, context, nullable, readOnly, writeOnly, siblings }: ToRefV31Args) => OasRef; export {};