import { IReferenceNode } from '../../../core/models/IReferenceNode'; import { IExample } from '../../../core/models/common/IExample'; import { IExampleParent } from '../../../core/models/common/IExampleParent'; import { IExamplesParent } from '../../../core/models/common/IExamplesParent'; import { OasHeader } from '../../models/OasHeader'; import { Oas30Schema } from './Oas30Schema'; import { Oas30MediaType } from './Oas30MediaType'; import { Oas30Example } from './Oas30Example'; /** * Constructor. * @param {string} name * @class * @extends OasHeader * @author eric.wittmann@gmail.com */ export declare class Oas30Header extends OasHeader implements IReferenceNode, IExampleParent, IExamplesParent { $ref: string; required: boolean; deprecated: boolean; allowEmptyValue: boolean; style: string; explode: boolean; allowReserved: boolean; schema: Oas30Schema; example: any; examples: any; content: any; constructor(name: string); /** * * @return {string} */ getReference(): string; /** * * @param {string} reference */ setReference(reference: string): void; /** * Creates a child items model. * @return {Oas30Schema} */ createSchema(): Oas30Schema; /** * Creates a child Example model. * @param {string} name * @return {Oas30Example} */ createExample(name: string): Oas30Example; /** * Adds the Example to the map of examples. * @param {*} example */ addExample(example: IExample): void; /** * @see io.apicurio.datamodels.core.models.common.IExampleParent#setExample(java.lang.Object) * @param {*} example */ setExample(example: any): void; /** * Removes an Example and returns it. * @param {string} name * @return {*} */ removeExample(name: string): IExample; getExample$java_lang_String(name: string): IExample; /** * Gets a single example by name. * @param {string} name * @return {*} */ getExample(name?: any): any; getExample$(): any; /** * Gets all examples. * @return {*[]} */ getExamples(): Array; /** * @see io.apicurio.datamodels.core.models.common.IExamplesParent#clearExamples() */ clearExamples(): void; /** * Creates a media type. * @param {string} name * @return {Oas30MediaType} */ createMediaType(name: string): Oas30MediaType; /** * Adds a media type. * @param {string} name * @param {Oas30MediaType} mediaType */ addMediaType(name: string, mediaType: Oas30MediaType): void; /** * Gets a single media type by name. * @param {string} name * @return {Oas30MediaType} */ getMediaType(name: string): Oas30MediaType; /** * Removes a single media type and returns it. This may return null or undefined if none found. * @param {string} name * @return {Oas30MediaType} */ removeMediaType(name: string): Oas30MediaType; /** * Gets a list of all media types. * @return {Oas30MediaType[]} */ getMediaTypes(): Array; }