UNPKG

@dooboostore/dom-render

Version:
49 lines 1.03 kB
export interface Position { start: { line: number; column: number; }; end: { line: number; column: number; }; source?: string; content: string; } export interface ParseOptions { source?: string; silent?: boolean; } export interface StyleSheet { type: 'stylesheet'; stylesheet: { source?: string; rules: Rule[]; parsingErrors: Error[]; }; } export interface Rule { type: string; selectors?: string[]; declarations?: Declaration[]; values?: string[]; name?: string; vendor?: string; keyframes?: Rule[]; media?: string; rules?: Rule[]; supports?: string; document?: string; comment?: string; position?: Position; [key: string]: any; } interface Declaration { type: 'declaration'; property: string; value: string; position?: Position; } export default function parse(css: string, options?: ParseOptions): StyleSheet; export {}; //# sourceMappingURL=index.d.ts.map