import { Aai20Document } from '../../asyncapi/v2/models/Aai20Document'; import { AbstractCommand } from '../AbstractCommand'; import { Document } from '../../core/models/Document'; /** * A command used to create a new server in an aaidocument. * @author c.desc2@gmail.com * @extends AbstractCommand * @class */ export declare class NewServerCommand_Aai20 extends AbstractCommand { _server: any; _serverName: string; _serverExisted: boolean; constructor(parent?: any, server?: any); /** * @see io.apicurio.datamodels.cmd.ICommand#execute(Document) * @param {Document} document */ execute(document: Document): void; /** * @see io.apicurio.datamodels.cmd.ICommand#undo(Document) * @param {Document} document */ undo(document: Document): void; /** * Returns true if a server with the same name already exists in the parent. * @param {Aai20Document} parent * @return {boolean} * @private */ serverAlreadyExists(parent: Aai20Document): boolean; }