import { Command } from "../Command"; import { IField } from "../../_types/IField"; /** * A command to change field values */ export declare class SetFieldCommand extends Command { protected revertValue: T | undefined; protected prev: T; protected newValue: T; protected field: IField; /** @override */ metadata: { name: string; }; /** * Creates a new set field command * @param field The field to be changed * @param value The value to change the field to * @param revertValue An optional value to revert the field to if specified, auto infered if left out */ constructor(field: IField, value: T, revertValue?: T); /** * Creates a new set field command * @param name The name of the change * @param field The field to be changed * @param value The value to change the field to * @param revertValue An optional value to revert the field to if specified, auto infered if left out */ constructor(name: string, field: IField, value: T, revertValue?: T); /** @override */ protected onExecute(): Promise; /** @override */ protected onRevert(): Promise; } //# sourceMappingURL=SetFieldCommand.d.ts.map