@angular/compiler
Version:
Angular - the compiler library
20 lines (19 loc) • 709 B
TypeScript
/**
* @license
* Copyright Google LLC 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 { UrlResolver } from './url_resolver';
export declare class StyleWithImports {
style: string;
styleUrls: string[];
constructor(style: string, styleUrls: string[]);
}
export declare function isStyleUrlResolvable(url: string): boolean;
/**
* Rewrites stylesheets by resolving and removing the @import urls that
* are either relative or don't have a `package:` scheme
*/
export declare function extractStyleUrls(resolver: UrlResolver, baseUrl: string, cssText: string): StyleWithImports;