import { JSONSchema7 } from 'json-schema'; /** Describes a type using JSON Schema. */ export type JsonSchema = Omit & { properties?: { [K in keyof T]?: JsonSchema; }; items?: JsonSchema | JsonSchema[]; }; /** * Helper function to unwrap arbitrarily nested arrays and return the * actual content object type of the array. * * Example: * * ```yaml * nestedArray: * type: array * items: * type: array * items: # This object is returned as the unwrapped content schema. * type: object * properties: * a: * type: string * ``` * * @param schema Any `JsonSchema` object * @returns A `JsonSchema` object that describes the type contained in the (possibly nested) array * or `schema` itself, if it is not an array schema. */ export declare function unwrapNestedArraySchema(schema: JsonSchema): JsonSchema;