import type { Element } from "domhandler"; import { type ParsedCss } from "./css.js"; import type { ComputedStyleSnapshot } from "./computed-style-snapshot.js"; export type { ComputedStyleSnapshot } from "./computed-style-snapshot.js"; export { snapshotComputedStylesFromDocument } from "./computed-style-snapshot.js"; export type StyleSource = "inline" | "computed"; export interface StyleResolver { readonly source: StyleSource; getCss(element: Element): ParsedCss; } export declare function parsedCssFromComputedRecord(raw: Record): ParsedCss; export declare class InlineStyleResolver implements StyleResolver { readonly source: "inline"; getCss(element: Element): ParsedCss; } export declare class ComputedStyleResolver implements StyleResolver { readonly source: "computed"; private readonly byPath; constructor(snapshots: ComputedStyleSnapshot[]); static fromSnapshots(snapshots: ComputedStyleSnapshot[]): ComputedStyleResolver; private ancestorHasDarkBackground; getCss(element: Element): ParsedCss; } export declare const INLINE_STYLE_RESOLVER: StyleResolver; //# sourceMappingURL=style-resolver.d.ts.map