UNPKG

956 BTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { StyleDefinition } from '../style-utils/style-utils';
9/** A class that encapsulates CSS style generation for common directives */
10export declare abstract class StyleBuilder {
11 /** Whether to cache the generated output styles */
12 shouldCache: boolean;
13 /** Build the styles given an input string and configuration object from a host */
14 abstract buildStyles(input: string, parent?: Object): StyleDefinition;
15 /**
16 * Run a side effect computation given the input string and the computed styles
17 * from the build task and the host configuration object
18 * NOTE: This should be a no-op unless an algorithm is provided in a subclass
19 */
20 sideEffect(_input: string, _styles: StyleDefinition, _parent?: Object): void;
21}