1 | import * as postcss from 'postcss';
|
2 | import { Diagnostics } from './diagnostics';
|
3 | import { DeclStylableProps, Imported, SDecl, StylableMeta, StylableSymbol } from './stylable-processor';
|
4 | import { SelectorAstNode } from './selector-utils';
|
5 | import { ImportSymbol } from './stylable-meta';
|
6 | import { StylableResolver } from './stylable-resolver';
|
7 | export declare const CUSTOM_SELECTOR_RE: RegExp;
|
8 | export declare function isValidDeclaration(decl: postcss.Declaration): boolean;
|
9 | export declare function expandCustomSelectors(rule: postcss.Rule, customSelectors: Record<string, string>, diagnostics?: Diagnostics): string;
|
10 | export declare function transformMatchesOnRule(rule: postcss.Rule, lineBreak: boolean): string;
|
11 | export declare function scopeSelector(scopeSelectorRule: string, targetSelectorRule: string, rootScopeLevel?: boolean): {
|
12 | selector: string;
|
13 | selectorAst: SelectorAstNode;
|
14 | };
|
15 | export declare function mergeRules(mixinAst: postcss.Root, rule: postcss.Rule): postcss.Rule;
|
16 | export declare function createSubsetAst<T extends postcss.Root | postcss.AtRule>(root: postcss.Root | postcss.AtRule, selectorPrefix: string, mixinTarget?: T, isRoot?: boolean): T;
|
17 | export declare function removeUnusedRules(ast: postcss.Root, meta: StylableMeta, _import: Imported, usedFiles: string[], resolvePath: (ctx: string, path: string) => string): void;
|
18 | export declare function findDeclaration(importNode: Imported, test: any): postcss.Declaration;
|
19 | export declare function findRule(root: postcss.Root, selector: string, test?: any): null | postcss.Declaration;
|
20 | export declare function getDeclStylable(decl: SDecl): DeclStylableProps;
|
21 | export declare function getSourcePath(root: postcss.Root, diagnostics: Diagnostics): string;
|
22 | export declare function getAlias(symbol: StylableSymbol): ImportSymbol | undefined;
|
23 | export declare function generateScopedCSSVar(namespace: string, varName: string): string;
|
24 | export declare function isCSSVarProp(value: string): boolean;
|
25 | export declare function scopeCSSVar(resolver: StylableResolver, meta: StylableMeta, symbolName: string): string;
|
26 | export declare function isValidClassName(className: string): boolean;
|
27 |
|
\ | No newline at end of file |