UNPKG

702 BTypeScriptView Raw
1import postcss from 'postcss';
2import { ParsedValue } from './types';
3export declare type OnUrlCallback = (node: ParsedValue) => void;
4export declare function collectAssets(ast: postcss.Root): string[];
5export declare function isExternal(url: string): boolean;
6export declare function isAsset(url: string): boolean;
7export declare function makeAbsolute(resourcePath: string, rootContext: string, moduleContext: string): string;
8export declare function processDeclarationUrls(decl: postcss.Declaration, onUrl: OnUrlCallback, transform: boolean): void;
9export declare function fixRelativeUrls(ast: postcss.Root, originPath: string, targetPath: string): void;
10//# sourceMappingURL=stylable-assets.d.ts.map
\No newline at end of file