import { AbstractCommand } from '../AbstractCommand'; import { Document } from '../../core/models/Document'; import { NodePath } from '../../core/models/NodePath'; import { Server } from '../../core/models/common/Server'; /** * A command used to modify a server. * @author eric.wittmann@gmail.com * @extends AbstractCommand * @class */ export declare class ChangeServerCommand extends AbstractCommand { _parentPath: NodePath; _serverUrl: string; _serverObj: any; _oldServer: any; constructor(server?: 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; /** * Replaces the content of a server with the content from another server. * @param {Server} toServer * @param {*} fromServer */ replaceServerWith(toServer: Server, fromServer: any): void; }