import type { ParseContextType } from '../context/parseTypes.js'; import type { StackTrail } from '../context/StackTrail.js'; import { type OasExternalDocsData } from '../oas/externalDocs/externalDocsTypes.js'; export type ToTagListArgs = { tags: Tag[]; /** Trail that ends in the `tags` key. */ stackTrail: StackTrail; context: ParseContextType; }; /** * Check the root `tags` field before its entries are parsed. Not an array: * logs one `INVALID_TAG` warning and returns `undefined`, read as no tags. */ export declare const toTagList: ({ tags, stackTrail, context }: ToTagListArgs) => Tag[] | undefined; export type IsValidTagArgs = { tag: unknown; /** Trail that ends in the entry's index. */ stackTrail: StackTrail; context: ParseContextType; }; /** * A tag entry must be a plain object with a string `name`. Any other entry * logs one `INVALID_TAG` warning, and the caller leaves it out. */ export declare const isValidTag: ({ tag, stackTrail, context }: IsValidTagArgs) => boolean; export type ToValidExternalDocsArgs = { externalDocs: unknown; /** Trail that ends in the `externalDocs` key. */ stackTrail: StackTrail; context: ParseContextType; }; /** * Validate an `externalDocs` object. One that fails `oasExternalDocsData` * logs one `INVALID_EXTERNAL_DOCS` warning and returns `undefined`. */ export declare const toValidExternalDocs: ({ externalDocs, stackTrail, context }: ToValidExternalDocsArgs) => OasExternalDocsData | undefined;