import { RichElement } from './type'; interface ISelector { isChild: boolean; isGeneralSibling: boolean; isAdjacentSibling: boolean; tag: string | null; id: string | null; class: string[]; attrs: Array<{ all: boolean; key: string; value?: string | null; }>; } interface IStyle { content: string; selectorList: ISelector[]; } /** * 解析 style 标签 */ export default class StyleTagParser { styles: IStyle[]; extractStyle(src: string): string; stringToSelector(style: string): void; parseSelector(src: string): ISelector[]; matchStyle(tagName: string, el: RichElement, list: number[]): string; matchCurrent(tagName: string, el: RichElement, selector: ISelector): boolean; } export {}; //# sourceMappingURL=style.d.ts.map