import type { ParseContextType } from '../context/parseTypes.js'; import type { StackTrail } from '../context/StackTrail.js'; import type { OasIssueType } from '../context/generateTypes.js'; export type ToComponentEntriesArgs = { entries: Record; /** Trail that ends in the bucket key, e.g. `components:headers`. */ stackTrail: StackTrail; context: ParseContextType; /** Issue type logged for an entry that fails to parse. */ type: OasIssueType; /** Names the entry in the message, e.g. `Request body`. */ label: string; /** Parses one entry. An `undefined` result leaves the entry out. */ parse: (args: { key: string; entry: Entry; stackTrail: StackTrail; }) => Parsed | undefined; }; /** * Parse each entry of a `components` bucket inside its own `tryParseAt` * boundary. Shared by the 3.0, 3.1 and 3.2 parsers. * * An entry that is not a plain object (`null`, an array, a string), or that * throws while it parses, is dropped with one error of `type` at its * location. Consumers reference it by name, so leaving it out silently would * change what they render. The other entries are kept. */ export declare const toComponentEntries: ({ entries, stackTrail, context, type, label, parse }: ToComponentEntriesArgs) => Record;