import { OpenAPIV3_1 } from 'openapi-types'; import { DataSchema } from './types/endpoint.js'; import { ComponentsSection, Schema3_1, SimpleSchema, SimpleSchemaWithSubschemas } from './types/schema.js'; export declare const isObject: (value: unknown) => value is Record; export declare const structuredDataContentTypes: string[]; /** * Returns the FileSchema contentEncoding when a string schema represents a file upload. * Covers OpenAPI 3.0 `format: binary|base64` and OpenAPI 3.1 `contentMediaType` * representations (with optional `contentEncoding` to choose base64 vs binary). * * `contentMediaType` alone only counts as a file for known binary media-type families * (octet-stream, image/audio/video, pdf, common archives). `contentEncoding` alone is * not enough — in JSON Schema it often means an inline encoded string, not an upload. */ export declare function getFileLikeStringEncoding(schema: { format?: string; contentEncoding?: unknown; contentMediaType?: unknown; }): 'binary' | 'base64' | undefined; /** Read OpenAPI 3.1 JSON Schema file keywords (not always present on openapi-types). */ export declare function getSchemaContentMediaType(schema: object): string | undefined; export declare function getSchemaContentEncoding(schema: object): string | undefined; export declare function dereference(section: S, $ref: string, components: Record[string]> | undefined, maxDepth?: number): NonNullable[string] | undefined; export declare const addKeyIfDefined: (key: K, value: D[K] | undefined, destination: D) => void; export declare const copyKeyIfDefined: (key: K, source: Pick, destination: D) => void; export declare const copyExampleIfDefined: (source: Pick, destination: Pick) => void; export declare function recursivelyFindDescription(schema: SimpleSchema, name: string | undefined): string | undefined; export declare function sortSchemas(schemas: SimpleSchema[]): void; export declare function mergeTypes(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema): void; export declare function normalizeMinMax(schema: SimpleSchema): void; export declare function combineTitle(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema): void; export declare function copyAndCombineKeys(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema): void; export declare function combineExamples(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema): void; export declare function combineProperties(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema, componentSchemas: Record | undefined, location?: 'request' | 'response'): void; export declare function combineDescription(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema, schemas: SimpleSchema[]): void; export declare function combineAdditionalProperties(acc: SimpleSchemaWithSubschemas, curr: SimpleSchema): void; export declare function discriminatorAndSchemaRefsMatch(schema: SimpleSchema): boolean;