import { AbstractCommand } from '../AbstractCommand'; import { Document } from '../../core/models/Document'; import { NodePath } from '../../core/models/NodePath'; /** * A command used to rename a schema header. * @author vvilerio * @extends AbstractCommand * @class */ export declare class RenameHeaderCommand extends AbstractCommand { _parentPath: NodePath; _oldHeaderName: string; _newHeaderName: string; constructor(parent?: any, oldHeaderName?: any, newHeaderName?: 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; /** * Does the work of renaming a path from one name to another. * @param {Document} document * @param {string} from * @param {string} to * @private * @private */ _doHeaderRename(document: Document, from: string, to: string): void; }