1 | import postcss from 'postcss';
|
2 | import { Diagnostics } from './diagnostics';
|
3 | import { SelectorAstNode } from './selector-utils';
|
4 | import { StateResult } from './state-validators';
|
5 | import { ClassSymbol, ElementSymbol, StylableMeta, StylableSymbol } from './stylable-processor';
|
6 | import { StylableResolver } from './stylable-resolver';
|
7 | import { MappedStates } from './stylable-value-parsers';
|
8 | import { StateParsedValue } from './types';
|
9 | export declare const stateMiddleDelimiter = "-";
|
10 | export declare const booleanStateDelimiter = "--";
|
11 | export declare const stateWithParamDelimiter: string;
|
12 | export declare const stateErrors: {
|
13 | UNKNOWN_STATE_USAGE: (name: string) => string;
|
14 | UNKNOWN_STATE_TYPE: (name: string, type: string) => string;
|
15 | TOO_MANY_STATE_TYPES: (name: string, types: string[]) => string;
|
16 | NO_STATE_TYPE_GIVEN: (name: string) => string;
|
17 | TOO_MANY_ARGS_IN_VALIDATOR: (name: string, validator: string, args: string[]) => string;
|
18 | STATE_STARTS_WITH_HYPHEN: (name: string) => string;
|
19 | };
|
20 | export declare function processPseudoStates(value: string, decl: postcss.Declaration, diagnostics: Diagnostics): MappedStates;
|
21 | export declare function validateStateDefinition(decl: postcss.Declaration, meta: StylableMeta, resolver: StylableResolver, diagnostics: Diagnostics): void;
|
22 | export declare function validateStateArgument(stateAst: StateParsedValue, meta: StylableMeta, value: string, resolver: StylableResolver, diagnostics: Diagnostics, rule?: postcss.Rule, validateDefinition?: boolean, validateValue?: boolean): StateResult;
|
23 | export declare function transformPseudoStateSelector(meta: StylableMeta, node: SelectorAstNode, name: string, symbol: StylableSymbol | null, origin: StylableMeta, originSymbol: ClassSymbol | ElementSymbol, resolver: StylableResolver, diagnostics: Diagnostics, rule?: postcss.Rule): StylableMeta;
|
24 | export declare function setStateToNode(states: MappedStates, meta: StylableMeta, name: string, node: SelectorAstNode, namespace: string, resolver: StylableResolver, diagnostics: Diagnostics, rule?: postcss.Rule): void;
|
25 | export declare function createBooleanStateClassName(stateName: string, namespace: string): string;
|
26 | export declare function createStateWithParamClassName(stateName: string, namespace: string, param: string): string;
|
27 | export declare function createAttributeState(stateName: string, namespace: string, param: string): string;
|
28 | export declare function resolveStateParam(param: string): string;
|
29 |
|
\ | No newline at end of file |