import { BaseResponseUtil, FullResponseUtil, IOpenAPIResponseContext, IPostmanResponseContext } from './baseResponseUtils'; import { ResponseObject as PostmanResponseObject } from '../../generators/postman/definitions'; import { ResponseObject as OpenAPIResponseObject, ReferenceObject, LinkObject, MediaTypeObject, HeaderObject } from '../../generators/openapi/definitions'; import { MediaTypeUtil } from './mediaTypeUtil'; /** * {@include ../../../typedocIncludes/responses/responseUtil.md} */ export declare class ResponseUtil extends FullResponseUtil { setName(name: string): this; setDescription(description: string): this; setCode(code: number): this; getCode(): number | undefined; setDefault(isDefault: boolean): this; isDefault(): boolean; setRef(ref: string): this; getRef(): string | undefined; removeRef(): string | undefined; setHeaders(headers: Record): this; addHeader(key: string, header: HeaderObject): this; addHeader(key: string, header: ReferenceObject): this; addHeader(key: string): this; removeHeaders(): Record | undefined; removeHeader(key: string): HeaderObject | ReferenceObject | undefined; setMediaTypes(mediaTypes: Record): this; addMediaType(contentType: string, mediaType: MediaTypeObject): this; addMediaType(contentType: string, mediaType: MediaTypeUtil): this; addMediaType(contentType: string): this; removeMediaTypes(): Record | undefined; removeMediaType(contentType: string): MediaTypeObject | undefined; setLinks(links: Record): this; addLink(key: string, link: LinkObject): this; addLink(key: string, link: ReferenceObject): this; addLink(key: string): this; removeLinks(): Record | undefined; removeLink(key: string): LinkObject | ReferenceObject | undefined; toPostman(): PostmanResponseObject[]; toPostman(ctxt: IPostmanResponseContext): PostmanResponseObject[]; toOpenAPI(): Record; toOpenAPI(ctxt: IOpenAPIResponseContext): Record; } /** * {@include ../../../typedocIncludes/responses/groupResponseUtil.md} */ export declare class GroupResponseUtil extends BaseResponseUtil { protected responseUtils: BaseResponseUtil[]; constructor(responseUtils: BaseResponseUtil[]); toPostman(): PostmanResponseObject[]; toOpenAPI(): Record; }