/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /** * @fileoverview Defines a helper class for wrapping the use of stateless data bindings */ import { DataBinding } from "../data_binder/dataBinding.js"; import { ModificationContext } from "../data_binder/modificationContext.js"; import { RemovalContext } from "../data_binder/removalContext.js"; export interface StatelessParams { } /** * A wrapper class for StatelessDataBinding that's used during registering a StatelessDataBinding. * * @alias StatelessDataBindingWrapper * @private * @hidden */ export declare class StatelessDataBindingWrapper extends DataBinding { _singleton: any; /** * Constructor * * @param params - An object containing the initialization parameters. * @TODO Update params type when introducing comprehensive one in DataBinding class */ constructor(params: any); /** * Handler that is called during the initial creation of the entity, once all its children have been created * * @param in_modificationContext - The modifications */ onPostCreate(in_modificationContext: ModificationContext): void; /** * Handler that is called when this entity's corresponding property or any of its child properties are modified. * This function will be called before any of the children's onPreModify and onModify handlers. * * @param in_modificationContext - The modifications */ onPreModify(in_modificationContext: ModificationContext): void; /** * Handler that is called when this entity's corresponding property or any of its child properties are modified. * This function will be called after all of the children's onPreModify and onModify handlers. * * @param in_modificationContext - The modifications */ onModify(in_modificationContext: ModificationContext): void; /** * Handler that is called when the entity is removed. * This is called before any of the children's onRemove and onPreRemove handlers are called. * * @param in_removalContext - The removal context */ onPreRemove(in_removalContext: RemovalContext): void; /** * Handler that is called when the entity is removed * This is called after all the children's onRemove and onPreRemove handlers are called. * * @param in_removalContext - The removal context */ onRemove(in_removalContext: RemovalContext): void; } //# sourceMappingURL=statelessDataBindingWrapper.d.ts.map