/** * What moved while the in-place path was taking its screenshots. * * The guard that rejects a subject for moving mid-capture is the one message a * caller has to act on, and it is thrown from the only place that still holds * both readings. Reporting that "something" changed spends that position on * nothing: the reader is sent back to the page to re-find a caret, an animation * or a poll that this function can already name. */ import { documentDigest } from '@variance-authority/core/format'; import type { AccessibilitySnapshot, SemanticSnapshot } from '@variance-authority/core/format'; /** The four independently digested readings the in-place guard compares. */ export interface InPlaceReading { readonly document: Parameters[0]; readonly snapshot: SemanticSnapshot; readonly accessibility: AccessibilitySnapshot; readonly stabilization: { readonly digest?: string; }; } /** * Name every facet that disagrees between two readings of one subject. * * Structure and style are reported apart even though one snapshot digest covers * both, because they point at different writers: a node count that moved is a * render still running, and style alone is a transition or a theme settling. */ export declare function driftBetween(before: InPlaceReading, after: InPlaceReading): readonly string[]; /** Read a drift list back as the subject of a sentence. */ export declare function listDrift(drifted: readonly string[]): string; /** * The places the page agent saw change, capped, as the end of a sentence. * * Capped for the reason `whereUnstable` is: a subject that changes everywhere is * described by the first few places. */ export declare function listMutated(mutated: readonly string[]): string; //# sourceMappingURL=drift.d.ts.map