blob: 56d25d4903fb8bce05019a3cbe95b7e167790a9c [file] [log] [blame]
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
export declare interface AttributeHelperPluginApi {
/**
* Binds callback to property updates.
*
* @param name Property name.
* @return Unbind function.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
bind(name: string, callback: (value: any) => void): () => any;
/**
* Get value of the property from wrapped object. Waits for the property
* to be initialized if it isn't defined.
*/
get(name: string): Promise<unknown>;
/**
* Sets value and dispatches event to force notify.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
set(name: string, value: any): void;
}