import * as parse5 from "parse5"; import * as postcss from "postcss"; export declare type RuleScope = Array; export declare type RuleIteratorWithScope = (rule: postcss.Rule, scope: RuleScope) => false | undefined | void; export declare type BodyElement = parse5.Element & parse5.ParentNode & { nodeName: "body"; tagName: "body"; }; export declare function isRule(node: postcss.Node): node is postcss.Rule; export declare function isAtRule(node: postcss.Node): node is postcss.AtRule; export declare function isContainer(node: postcss.Node): node is postcss.Container; export declare function walkRules(container: postcss.Container, eachRule: RuleIteratorWithScope): void; export declare function allElements(parent: parse5.ParentNode): Array; export declare type StartTagCallback = (node: parse5.DefaultTreeElement) => EndTagCallback; export declare type EndTagCallback = ((node: parse5.DefaultTreeElement) => void) | undefined | void; /** * invokes the callback with each element in the document via a depth first traversal. */ export declare function walkElements(node: parse5.Node | parse5.ParentNode, cb: StartTagCallback): void; export declare function isElement(node: parse5.Node): node is parse5.DefaultTreeElement; export declare function isParentNode(node: parse5.Node | parse5.ParentNode): node is parse5.DefaultTreeParentNode; export declare function parseStylesheet(content: string): Promise; export declare function parseHtml(html: string): parse5.DefaultTreeDocument; export declare function bodyElement(document: parse5.Document): BodyElement | undefined; /** * serializes an element and it's children to a string. */ export declare function serializeElement(element: parse5.Node): string; /** * outputs the element's opening tag only. */ export declare function debugElement(element: parse5.DefaultTreeElement): string; export declare function documentToString(document: parse5.Document): string; export declare const POSTCSS_NOOP_PLUGIN: postcss.Plugin<{}>; //# sourceMappingURL=util.d.ts.map