import type { OpenAPIV3 } from 'openapi-types'; import type { ParseContextType } from '../context/parseTypes.js'; import type { StackTrail } from '../context/StackTrail.js'; import type { OasSchema } from '../oas/schema/Schema.js'; import type { OasRef } from '../oas/ref/Ref.js'; import type { SiblingKeywords } from '../oas/schema/siblings.js'; type ToSiblingKeywordsArgs = { /** The keywords next to the one member, without `allOf` and the use-site flags. */ keywords: OpenAPIV3.SchemaObject; /** `keywords.properties`, parsed by the caller's version of the parser. */ properties: Record> | undefined; /** `keywords.additionalProperties`, parsed the same way. */ additionalProperties: boolean | OasSchema | OasRef<'schema'> | undefined; /** The trail of the schema that holds the `allOf`. */ stackTrail: StackTrail; context: ParseContextType; }; /** * The keywords next to a reference in a one-member `allOf`, read without the * target's type (see `SiblingKeywords`): the reference stays lazy, so the * target may not be parsed yet. The ones the target cannot take are left out * at generate time (`OasRef.toSkippedSiblings`). An extension (`x-*`) is kept, as each * version's `toSpecificationExtensionsV3` keeps one; a keyword that no schema * has here is reported. `undefined` when no keyword is left. Shared by the * 3.0, 3.1 and 3.2 parsers. */ export declare const toSiblingKeywords: ({ keywords, properties, additionalProperties, stackTrail, context }: ToSiblingKeywordsArgs) => SiblingKeywords | undefined; export {};