import { AbstractCommand } from '../AbstractCommand';
import { Document } from '../../core/models/Document';
import { NodePath } from '../../core/models/NodePath';
import { SecurityRequirement } from '../../core/models/common/SecurityRequirement';
/**
 * A command used to replace a definition schema with a newer version.
 * @author eric.wittmann@gmail.com
 * @extends AbstractCommand
 * @class
 */
export declare class ReplaceSecurityRequirementCommand extends AbstractCommand {
    _parentPath: NodePath;
    _oldRequirement: any;
    _newRequirement: any;
    _replaced: boolean;
    constructor(old?: any, replacement?: 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;
    indexOfRequirement(requirements: Array<SecurityRequirement>, requirement: SecurityRequirement): number;
    isEqual(req1: SecurityRequirement, req2: SecurityRequirement): boolean;
}
