import { type StyleInfo, type CssOGInfo, type PageConfig, type SSRHydrateInfo, type FlattenedStyleInfo } from '@lynx-js/web-constants'; /** * get Transitive Closure of a Direct Acyclic Graph (DAG) * 1. for each css, find all the imported by css files (directly and indirectly) * 2. for each css, find all the importing css files (directly and indirectly) * 3. return the flattened style info, do not modify the content and rules */ export declare function flattenStyleInfo(styleInfo: StyleInfo, cloneDeep?: boolean): FlattenedStyleInfo; /** * apply the lynx css -> web css transformation */ export declare function transformToWebCss(styleInfo: FlattenedStyleInfo): void; /** * generate those styles applied by */ export declare function genCssContent(styleInfo: FlattenedStyleInfo, pageConfig: PageConfig, entryName?: string): string; /** * generate the css-in-js data */ export declare function genCssOGInfo(styleInfo: FlattenedStyleInfo): CssOGInfo; export declare function appendStyleElement(styleInfo: StyleInfo, pageConfig: PageConfig, rootDom: Node, document: Document, ssrHydrateInfo?: SSRHydrateInfo, allOnUI?: boolean): { updateCssOGStyle: (uniqueId: number, newClassName: string, cssID: string | null, entryName: string | null) => void; updateLazyComponentStyle: (styleInfo: StyleInfo, entryName: string) => void; };