/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { DoCheck, ElementRef, KeyValueDiffers, Renderer } from '@angular/core'; /** * @ngModule CommonModule * * @whatItDoes Update an HTML element styles. * * @howToUse * ``` * ... * * ... * * ... * ``` * * @description * * The styles are updated according to the value of the expression evaluation: * - keys are style names with an optional `.` suffix (ie 'top.px', 'font-style.em'), * - values are the values assigned to those properties (expressed in the given unit). * * @stable */ export declare class NgStyle implements DoCheck { private _differs; private _ngEl; private _renderer; private _ngStyle; private _differ; constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer); ngStyle: { [key: string]: string; }; ngDoCheck(): void; private _applyChanges(changes); private _setStyle(nameAndUnit, value); }