import { IIndexedNode } from '../../../core/models/IIndexedNode';
import { Node } from '../../../core/models/Node';
import { IVisitor } from '../../../core/visitors/IVisitor';
/**
 * Models an OpenAPI 2.0 responses.
 * @author eric.wittmann@gmail.com
 * @class
 * @extends Node
 */
export declare class Oas20ResponseDefinitions extends Node implements IIndexedNode<Oas20ResponseDefinition> {
    items: any;
    /**
     * @see io.apicurio.datamodels.core.models.Node#accept(io.apicurio.datamodels.core.visitors.IVisitor)
     * @param {*} visitor
     */
    accept(visitor: IVisitor): void;
    /**
     * Returns a single response by name.
     * @param {string} name
     * @return {Oas20ResponseDefinition}
     */
    getResponse(name: string): Oas20ResponseDefinition;
    /**
     * Returns an array of all the responses.
     * @return {Oas20ResponseDefinition[]}
     */
    getResponses(): Array<Oas20ResponseDefinition>;
    /**
     * Adds a response.
     * @param {string} name
     * @param {Oas20ResponseDefinition} response
     * @return {Oas20ResponseDefinition}
     */
    addResponse(name: string, response: Oas20ResponseDefinition): Oas20ResponseDefinition;
    /**
     * Removes a response by name.
     * @param {string} name
     * @return {Oas20ResponseDefinition}
     */
    removeResponse(name: string): Oas20ResponseDefinition;
    /**
     * Gets a list of all the response names.
     * @return {string[]}
     */
    getResponseNames(): Array<string>;
    /**
     * Creates an OAS 2.0 Response object.
     * @param {string} name
     * @return {Oas20ResponseDefinition}
     */
    createResponse(name: string): Oas20ResponseDefinition;
    /**
     * @see io.apicurio.datamodels.core.models.IIndexedNode#getItem(java.lang.String)
     * @param {string} name
     * @return {Oas20ResponseDefinition}
     */
    getItem(name: string): Oas20ResponseDefinition;
    /**
     * @see io.apicurio.datamodels.core.models.IIndexedNode#getItems()
     * @return {Oas20ResponseDefinition[]}
     */
    getItems(): Array<Oas20ResponseDefinition>;
    /**
     * @see io.apicurio.datamodels.core.models.IIndexedNode#getItemNames()
     * @return {string[]}
     */
    getItemNames(): Array<string>;
    addItem$java_lang_String$io_apicurio_datamodels_openapi_v2_models_Oas20ResponseDefinition(name: string, item: Oas20ResponseDefinition): void;
    /**
     * @see io.apicurio.datamodels.core.models.IIndexedNode#addItem(java.lang.String, io.apicurio.datamodels.core.models.Node)
     * @param {string} name
     * @param {Oas20ResponseDefinition} item
     */
    addItem(name?: any, item?: any): any;
    /**
     * @see io.apicurio.datamodels.core.models.IIndexedNode#deleteItem(java.lang.String)
     * @param {string} name
     * @return {Oas20ResponseDefinition}
     */
    deleteItem(name: string): Oas20ResponseDefinition;
    constructor();
}
import { Oas20ResponseDefinition } from './Oas20ResponseDefinition';
