/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * @fileoverview Context which describes a remove operation. */ import { BaseContext } from "./baseContext.js"; import { DataBinding } from "./dataBinding.js"; import { NodeType } from "./dataBindingTree.js"; /** * Context which describes a remove operation * @extends BaseContext * @alias RemovalContext * @internal */ export declare class RemovalContext extends BaseContext { private _subTree; /** * @param in_subTree - The entity tree that was removed by this operation * @param in_baseDataBinding - The base data binding to which this event has been bound * @param in_path - The full path to the property that is removed * @param in_simulated - if true, the modification is being done due to removing a binding * for properties that are still in the workspace, i.e., we are simulating the removal of the property. * * @constructor * @hideconstructor * @hidden * @package */ constructor(in_subTree: NodeType, in_baseDataBinding?: DataBinding, in_path?: string, in_simulated?: boolean); /** * Returns the Data Bindings (if it exists) at the root of the removal. If an optional binding type is supplied, * Bindings that correspond to that type are returned, otherwise Bindings which have the same type as the * Binding that triggered the event of this this RemovalContext are returned. * * @param in_bindingType - The requested bindingType. If none has been given, data bindings with the same * bindingType as the DataBinding that triggered this removal context. * @returns A data binding (defined for the given bindingType * or the one associated with the data binding) or undefined if no binding is present. */ getDataBinding(in_bindingType?: string): DataBinding | undefined; /** * clones the context object * * @returns the cloned context * @package * @hidden */ _clone(): RemovalContext; /** * The DataBinder responds to changes in the PropertyTree _after_ they have already been applied to the in-memory * representation. The implication is that at the time of a removal callback, the property that is being * removed no longer exists in the in-memory representation of the PropertyTree. As such, this callback can only * return undefined. * * @returns Will always return undefined. */ getProperty(): undefined; } //# sourceMappingURL=removalContext.d.ts.map