import type { ParseContextType } from '../context/parseTypes.js'; import type { StackTrail } from '../context/StackTrail.js'; export type ToPresentResponsesArgs = { responses: Responses | null | undefined; /** Trail that ends in the `responses` key. */ stackTrail: StackTrail; context: ParseContextType; }; /** * Check the `responses` field of an operation or webhook before its entries * are parsed. Shared by the 3.0, 3.1 and 3.2 parsers. * * - Missing or `null`: logs one `MISSING_RESPONSES` warning and returns * `undefined`. The caller reads it as no documented responses. * - Not an object (an array, a string, a number): throws, so the operation * is dropped as `INVALID_OPERATION` with a message that names `responses`. * - Otherwise: returns `responses`. */ export declare const toPresentResponses: ({ responses, stackTrail, context }: ToPresentResponsesArgs) => Responses | undefined;