UNPKG

stylelint-plugin-color

Version:

Stylelint plugin for managing colors. Includes Less and Sass support.

48 lines (47 loc) 1.72 kB
import { CssNode, SyntaxParseError } from 'css-tree'; export * from 'css-tree'; export declare type Matched = { token?: string; node?: CssNode; match?: Matched[] | null; syntax: { type: string; name: string; opts?: null; } | null; }; export declare type Match = { matched: Matched | null; iterations: number; error: SyntaxParseError | null; getTrace: () => any; isType: () => boolean; isProperty: () => boolean; isKeyword: () => boolean; }; export declare type Lexer = { new (config: any, syntax: any, structure: any): Lexer; matchDeclaration(node: CssNode): Match; checkStructure(ast: CssNode): any; createDescriptor(syntax: any, type: any, name: any): any; addAtrule_(name: any, syntax: any): any; addProperty_(name: any, syntax: any): any; addType_(name: any, syntax: any): any; matchAtrulePrelude(atruleName: any, prelude: any): Match; matchAtruleDescriptor(atruleName: any, descriptorName: any, value: any): Match; matchDeclaration(node: any): Match; matchProperty(propertyName: any, value: any): Match; matchType(typeName: any, value: any): Match; match(syntax: any, value: any): Match; findValueFragments(propertyName: any, value: any, type: any, name: any): any; findDeclarationValueFragments(declaration: any, type: any, name: any): any; findAllFragments(ast: any, type: any, name: any): any; getAtrule(name: any): any; getAtruleDescriptor(atruleName: any, name: any): any; getProperty(name: any): any; getType(name: any): any; validate(): any; dump(syntaxAsAst: any, pretty: any): any; toString(): any; }; export declare const lexer: Lexer;