style_url_resolver.d.ts
710 Bytes
/**
* @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 { 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;