import type { ObservationProfile } from '@variance-authority/core/format'; import type { StyleIndex } from './css.js'; /** * What the ancestors contribute, and why a subject cannot be read without them. * * A subject is a subtree, and a subtree is not self-contained: `color` reaches in * from an ancestor that is not part of it, and `:root` declares the design tokens * every value inside it resolves through. Applicability pruning correctly drops * the rules that declare those, because they match nothing *inside* the subject — * so the values have to arrive some other way, and this file is that way. * * Split out of `collect.ts` because it is the only part of collection that looks * *outward* from the subject, and because it fails differently: everything else * there is wrong when it reads the subject wrongly, and this is wrong when it * reads nothing at all — which is exactly what it did, silently, until the token * band was found inert under JSDOM. */ /** * Inherited values in force at the subject root. * * Mandatory, not an optimization (ADR-0003). Applicability pruning drops every * rule matching nothing inside the subtree — including rules on ancestors * *outside* it whose inheritable properties still reach in. Without this seed * the cheap tier reports false `unchanged`. * * Under a profile without computed style there is no way to read the ancestors' * resolved values, so the seed is empty and the tier is correspondingly weaker. * That is reported by the profile, not papered over here. */ export declare function inheritedSeed(root: Element, profile: ObservationProfile, view: Window | null, index: StyleIndex): Record; //# sourceMappingURL=inherit.d.ts.map