import { AbstractCommand } from '../AbstractCommand'; import { Document } from '../../core/models/Document'; /** * A command used to add a new pathItem in a document. Source for the new * pathItem must be provided. This source will be converted to an OAS * pathItem object and then added to the data model. * @author eric.wittmann@gmail.com * @extends AbstractCommand * @class */ export declare class AddPathItemCommand extends AbstractCommand { _pathItemExists: boolean; _newPathItemName: string; _newPathItemObj: any; _nullPathItems: boolean; constructor(pathItemName?: any, from?: any); /** * @see io.apicurio.datamodels.cmd.ICommand#execute(io.apicurio.datamodels.core.models.Document) * @param {Document} document */ execute(document: Document): void; /** * @see io.apicurio.datamodels.cmd.ICommand#undo(io.apicurio.datamodels.core.models.Document) * @param {Document} document */ undo(document: Document): void; }