@mkbabb/keyframes.js 5.3.4 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,20 @@
1
- import { AnimationRangeValue } from '@mkbabb/value.js/parsing';
2
- import { AnimationTimelineValue } from '@mkbabb/value.js/parsing';
3
- import { AnimationTriggerValue } from '@mkbabb/value.js/parsing';
4
- import { ColorSpace } from '@mkbabb/value.js/color';
5
- import { CSSTimelineOptions } from '@mkbabb/value.js/parsing';
6
- import { CustomFunctionDescriptor } from '@mkbabb/value.js/parsing';
7
- import { extractAnimationOptions } from '@mkbabb/value.js/parsing';
1
+ import { AnimationRangeValue } from '@mkbabb/value.js/css';
2
+ import { AnimationTimelineValue } from '@mkbabb/value.js/css';
3
+ import { AnimationTriggerValue } from '@mkbabb/value.js/css';
4
+ import { BezierPresetName } from '@mkbabb/value.js/easing';
5
+ import { CSSAnimationOptions } from '@mkbabb/value.js/css';
6
+ import { CSSPropertyDescriptor } from '@mkbabb/value.js/css';
7
+ import { CSSTimelineOptions } from '@mkbabb/value.js/css';
8
+ import { CssValue } from '@mkbabb/value.js/value';
9
+ import { CustomFunctionDescriptor } from '@mkbabb/value.js/css';
8
10
  import { HueInterpolationMethod } from '@mkbabb/value.js/color';
9
- import { InterpolatedVar } from '@mkbabb/value.js/units';
10
- import { ParseDiagnostic } from '@mkbabb/value.js/parsing';
11
- import { PropertyDescriptor as PropertyDescriptor_2 } from '@mkbabb/value.js/parsing';
12
- import { RangeBoundary } from '@mkbabb/value.js/parsing';
13
- import { RangePhase } from '@mkbabb/value.js/parsing';
14
- import { Stylesheet } from '@mkbabb/value.js/parsing';
15
- import { timingFunctions } from '@mkbabb/value.js/easing';
16
- import { TriggerType } from '@mkbabb/value.js/parsing';
17
- import { ValueArray } from '@mkbabb/value.js/units';
18
- import { ValueUnit } from '@mkbabb/value.js/units';
11
+ import { KeyframeSelector } from '@mkbabb/value.js/css';
12
+ import { ParseIssue } from '@mkbabb/value.js/css';
13
+ import { RangeBoundary } from '@mkbabb/value.js/css';
14
+ import { RangePhase } from '@mkbabb/value.js/css';
15
+ import { SpaceId } from '@mkbabb/value.js/color';
16
+ import { Stylesheet } from '@mkbabb/value.js/css';
17
+ import { TriggerType } from '@mkbabb/value.js/css';
19
18
 
20
19
  declare const accordionExpand: PresetFactory;
21
20
 
@@ -87,7 +86,6 @@ export declare interface AnimationEngine {
87
86
  CSSKeyframesAnimation: typeof CSSKeyframesAnimation;
88
87
  AnimationGroup: typeof AnimationGroup;
89
88
  getAnimationId: typeof getAnimationId;
90
- getTimingFunction: typeof getTimingFunction;
91
89
  resolveKeyframes: typeof resolveKeyframes;
92
90
  MotionPath: typeof MotionPath;
93
91
  fromMotionPath: typeof fromMotionPath;
@@ -130,9 +128,10 @@ export declare interface AnimationEngine {
130
128
  yieldToMain: typeof yieldToMain;
131
129
  }
132
130
 
131
+ /** Consumer-observable data for one compiled keyframe segment. */
133
132
  export declare interface AnimationFrame<V extends Vars> {
134
133
  id: number;
135
- start: ValueUnit;
134
+ start: KeyframeSelector;
136
135
  ixs: {
137
136
  start: number;
138
137
  stop: number;
@@ -141,39 +140,8 @@ export declare interface AnimationFrame<V extends Vars> {
141
140
  start: number;
142
141
  stop: number;
143
142
  };
144
- flatVars: V;
143
+ flatVars: FlatAuthoredValues;
145
144
  vars: V;
146
- interpVars: {
147
- [arg: string]: Array<InterpolatedVar<V>>;
148
- };
149
- /**
150
- * Pre-flattened array of all interpolation variables across all properties.
151
- * Built once during parse() to avoid Object.values().flat() allocation
152
- * on every interpFrames() call in the hot path.
153
- */
154
- allInterpVars: Array<InterpolatedVar<V>>;
155
- /**
156
- * Q.WB3 S2 — the precomputed numeric SoA fold layout (built ONCE at `parse`
157
- * over the stable `allInterpVars` set). `processFrame` folds the numeric subset
158
- * through ONE `lerpArray` over the packed `Float64Array` buffers and strides
159
- * the result back into the numeric leaves' `.value` slots; the boxed residual
160
- * (color/computed/mixed) keeps the per-element `lerpValue`. Absent (undefined)
161
- * for a frame with no numeric ivs, or before `parse` runs — `processFrame`
162
- * falls back to the all-boxed walk. Bit-identical to the boxed path.
163
- */
164
- _numericPlan?: NumericFoldPlan<V>;
165
- /**
166
- * T.A6 — the nested PLAIN authored-shape projection a custom `transform`
167
- * consumes (numbers where the author wrote numbers, strings where a unit or
168
- * color demands one). Built lazily on the first apply — `undefined` for a
169
- * DOM-style default-renderer frame (which consumes `flatVars` directly) and
170
- * before the first `interpFrames(..., true)`. Invalidated at
171
- * `finalizeFrameVars` so a color-space renormalize rebuilds it against the
172
- * fresh interp carriers.
173
- */
174
- plainVars?: V;
175
- /** T.A6 — the per-leaf refresh-writer plan backing {@link plainVars}. */
176
- _plainProj?: PlainProjection | undefined;
177
145
  transform: TransformFunction<V>;
178
146
  timingFunction: Easing;
179
147
  /**
@@ -217,7 +185,7 @@ export declare class AnimationGroup<V extends Vars> {
217
185
  * consumer that expects the nested PLAIN authored-shape projection (the
218
186
  * "animate any object" seam), inherited from the first child's own
219
187
  * `unflatten` flag alongside its transform. False (the default) keeps the
220
- * DOM-style default renderer's FLAT `_grouped` map, byte-unchanged.
188
+ * DOM-style default renderer's flat composite map, byte-unchanged.
221
189
  */
222
190
  unflatten: boolean;
223
191
  lastTickTime: number;
@@ -241,32 +209,8 @@ export declare class AnimationGroup<V extends Vars> {
241
209
  /** Cached entries sorted by layer zIndex (see `getEntries`). */
242
210
  private _entries;
243
211
  private _entriesDirty;
244
- /** Long-lived composite buffer, cleared in place each frame (zero-alloc).
245
- * INTERNAL (R.W2) — read/written by `./compositor`. */
246
- readonly _compositeState: CompositeState;
247
- _grouped: Record<string, unknown>;
248
- /** The compile-stable union of every child's contributed keys — what `_grouped`
249
- * is null-filled to each frame so the composite clears WITHOUT `delete` (F.W4
250
- * S2; fold in `./entries`). INTERNAL (R.W2) — the `./compositor` null-fill. */
251
- _groupedKeys: string[];
252
- _groupedKeysDirty: boolean;
253
- /** P.W2 — the SoA composite layout for the `add`/`weighted` blend arms (the
254
- * validated 3.7×, bit-identical): one {@link SoALayerPlan} per entry, the FLAT
255
- * pure-numeric pairs hoisted into a {@link Float64Array} fold (built by
256
- * `buildSoAPlans` in `./soa`, rebuilt ONLY on a structural change). INTERNAL
257
- * (R.W2) — read/written by `./compositor`. */
258
- _soaPlans: SoALayerPlan[] | null;
259
- /**
260
- * T.A6 — the group's PLAIN authored-shape projection (built from the
261
- * composite `_grouped` leaf map when `unflatten` is set), rebuilt lazily on a
262
- * structural change (the SAME `_groupedKeysDirty` seam that drops the SoA
263
- * plan). Null until the first composited frame populates `_grouped`. INTERNAL
264
- * — read/written by `./compositor`. */
265
- _plainProj: PlainProjection | null;
266
- /** The long-lived SoA fold scratch — the contiguous numeric accumulate buffer,
267
- * sized to the WIDEST single-layer pair count once per structural change
268
- * (reused, zero per-frame alloc). INTERNAL (R.W2) — read by `./compositor`. */
269
- _compositeBuf: Float64Array | null;
212
+ /** Long-lived zero-allocation compositor state, absent from the public API. */
213
+ private readonly _composite;
270
214
  /** K.W11 PHYS-C — true iff ANY layer carries a `weightSpring`; when false (the
271
215
  * universal case) `advanceTo` skips the per-frame spring scan (ZERO new work).
272
216
  * INTERNAL (R.W2) — set by `./layer-api`'s `transitionLayer`. */
@@ -358,7 +302,7 @@ export declare class AnimationGroup<V extends Vars> {
358
302
 
359
303
  export declare interface AnimationGroupEntry<V extends Vars> {
360
304
  animation: KeyframesAnimation<V>;
361
- values: Record<string, unknown>;
305
+ values: FlatAuthoredValues;
362
306
  layer: AnimationLayerConfig;
363
307
  }
364
308
 
@@ -397,15 +341,15 @@ declare interface AnimationIdentity {
397
341
  export declare interface AnimationLayerConfig {
398
342
  /** Higher wins. Default: 0 */
399
343
  zIndex: number;
400
- /** 0–1 for 'weighted' blend mode. Default: 1 */
344
+ /** 0–1 replacement weight. Default: 1 */
401
345
  weight: number;
402
346
  /**
403
347
  * Optional spring (or any {@link WeightStepper}) DRIVING this layer's
404
348
  * blend `weight` (K.W11 PHYS-C — the spring-driven crossfade). When
405
- * present the `weighted` blend leaf reads `weightSpring.value` in place of
349
+ * present the weight blend reads `weightSpring.value` in place of
406
350
  * the constant `weight` (one nullish read; the per-frame lerp untouched),
407
351
  * so a layer transition follows a PHYSICAL trajectory that can overshoot
408
- * and settle — the flagship demo moment only kf's weighted-blend substrate
352
+ * and settle — the flagship demo moment only kf's weight-blend substrate
409
353
  * can hold. Constructed + advanced by `AnimationGroup.transitionLayer` /
410
354
  * `crossfade`; cleared on settle, when the read falls back to the
411
355
  * now-updated constant `weight`. Absent on a static-weight layer (the
@@ -413,14 +357,12 @@ export declare interface AnimationLayerConfig {
413
357
  */
414
358
  weightSpring?: WeightStepper;
415
359
  /**
416
- * Default: 'replace'. Defaulting on a genuinely-omitted blend mode is
360
+ * Default: 'replace'. Defaulting on a genuinely-omitted operation is
417
361
  * the sanctioned contract (the fail-explicit seam throws only on
418
362
  * malformed PRESENT input, never on omission) — an unspecified layer
419
363
  * blends by replacement, the least-surprising composite.
420
364
  */
421
- blendMode: BlendMode;
422
- /** Canonical composition operation. Omission preserves `blendMode` callers. */
423
- op?: CompositeOperator;
365
+ op: CompositeOperator;
424
366
  /** Layer toggle. Default: true */
425
367
  enabled: boolean;
426
368
  /** Optional property whitelist — only these properties will be output from this layer */
@@ -490,7 +432,7 @@ export declare type AnimationOptions = {
490
432
  * off-DOM. Default false (consumers opt in).
491
433
  */
492
434
  respectReducedMotion: boolean;
493
- colorSpace: ColorSpace;
435
+ colorSpace: SpaceId;
494
436
  hueMethod?: HueInterpolationMethod;
495
437
  /**
496
438
  * The LAYER-level `animation-composition` operator (L.W1 S5, Band A) — the
@@ -498,8 +440,8 @@ export declare type AnimationOptions = {
498
440
  * through a sibling `.class { animation: … }` shorthand/longhand ingest.
499
441
  * Distinct from the per-KEYFRAME {@link TemplateAnimationFrame.composition}
500
442
  * (the per-stop operator); this is the whole-animation composite the engine
501
- * carries off `extractAnimationOptions`'s `composition` field. Omission means
502
- * `replace` (the CSS default — the serializer omits it). value.js 0.13.0's
443
+ * carries off `collectAnimationOptions`'s `composition` field. Omission means
444
+ * `replace` (the CSS default — the serializer omits it). Value 4's
503
445
  * `CSSAnimationOptions.composition` surfaces it; `fromString` reads it here.
504
446
  */
505
447
  composite?: CompositeOperator;
@@ -569,12 +511,7 @@ export { AnimationTimelineValue }
569
511
 
570
512
  declare const attentionPresets: Readonly<Record<string, PresetFactory>>;
571
513
 
572
- /**
573
- * Public layer vocabulary. `weighted` is retained as a compatibility alias;
574
- * the canonical operation axis is {@link CompositeOperator}. `accumulate` is
575
- * additive and maps to the same un-clamped fold as `add` at group scope.
576
- */
577
- export declare type BlendMode = CompositeOperator | "weighted";
514
+ declare type AuthoredValue = number | string;
578
515
 
579
516
  declare const blurIn: PresetFactory;
580
517
 
@@ -656,8 +593,6 @@ export declare interface CompileOptions {
656
593
  * honest refusal).
657
594
  */
658
595
  deltaEEpsilon?: number;
659
- /** Prettier print-width for the emitted artifact. Omit for the default. */
660
- printWidth?: number;
661
596
  }
662
597
 
663
598
  export declare interface CompileRefusal {
@@ -666,7 +601,7 @@ export declare interface CompileRefusal {
666
601
  message: string;
667
602
  }
668
603
 
669
- export declare type CompileRefusalReason = "weighted-blend" | "custom-renderer" | "perceptual-oklab" | "computed-unit-drift";
604
+ export declare type CompileRefusalReason = "weight-blend" | "custom-renderer" | "perceptual-oklab" | "computed-unit-drift";
670
605
 
671
606
  /**
672
607
  * THE compiler (CC-1/CC-2/CC-3) — compile an orchestration graph to zero-runtime
@@ -676,7 +611,7 @@ export declare type CompileRefusalReason = "weighted-blend" | "custom-renderer"
676
611
  * materialized, computed units verbatim, color tracks densified into perceptual
677
612
  * `oklab()` stops under the ΔE-ε proof), and REFUSES with a NAMED reason what
678
613
  * cannot compile faithfully (CC-3 — the replay-equality invariant's honest
679
- * refusal). The result is async because `formatCSS` (Prettier) is.
614
+ * refusal). The Promise signature is retained across deterministic serialization.
680
615
  *
681
616
  * @returns `{ css, eligible, refusals }` — the artifact + the trust surface.
682
617
  */
@@ -710,29 +645,14 @@ export declare function compileToEntry<V extends Vars>(spec: Record<string, Entr
710
645
  export declare function compileToViewTransition<V extends Vars>(spec: Record<string, VTRoleSpec<V>>, opts?: ViewTransitionCompileOptions): Promise<CompiledViewTransitionCSS>;
711
646
 
712
647
  /**
713
- * The CSS `animation-composition` operator (K.W7). Distinct from
714
- * {@link BlendMode} (the GROUP's per-LAYER blend tier — `replace`/`add`/
715
- * `weighted`): this is the per-KEYFRAME composite operator the author declares
716
- * on a single animation, matching the CSS grammar exactly (`weighted` is not a
717
- * CSS composite; `accumulate` is the repeat-aware one CSS adds). The engine
718
- * routes `add`/`accumulate` onto the SAME un-clamped numeric leaf the group's
719
- * `add` layer runs (`group.ts`), so the two tiers share one accumulation
720
- * semantic without sharing a type.
648
+ * The CSS `animation-composition` operator (K.W7). A group layer uses this same
649
+ * grammar through `AnimationLayerConfig.op`; its orthogonal `weight` scalar can
650
+ * turn a replacement layer into a crossfade. The engine routes
651
+ * `add`/`accumulate` onto the SAME un-clamped numeric leaf the group layer runs,
652
+ * so keyframe and group composition share one accumulation semantic.
721
653
  */
722
654
  declare type CompositeOperator = "replace" | "add" | "accumulate";
723
655
 
724
- /** Stable, compositor-owned leaves. Foreign frame arrays are copied, never retained. */
725
- declare class CompositeState {
726
- readonly values: Record<string, unknown>;
727
- private keys;
728
- private readonly epochs;
729
- private epoch;
730
- configure(keys: string[]): void;
731
- clear(): void;
732
- copy(key: string, incoming: unknown): unknown;
733
- pruneInactive(): void;
734
- }
735
-
736
656
  /**
737
657
  * Feature-detect (`"ScrollTimeline" in window` / `"ViewTimeline" in window`)
738
658
  * and construct a NATIVE `AnimationTimeline` for the additive WAAPI scroll
@@ -795,11 +715,10 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
795
715
  * scroll-range named keyframe selector (`entry`/`exit`/`cover`/`contain`)
796
716
  * ingests OPAQUELY (the L.W1 S4 floor) and is RESOLVABLE only under a timeline;
797
717
  * `bindTimeline` is where that resolution happens. It walks `templateFrames`,
798
- * resolves each named-selector start to a numeric `%` `ValueUnit` via
799
- * {@link namedSelectorToFraction}, CLEARS the `NAMED_SELECTOR_SUPERTYPE` tag (so
800
- * the resolved frame is indistinguishable from an author-written `%` at the sort
801
- * step — no NaN), and re-compiles. The play-time guard
802
- * (`assertNoUnresolvedNamedSelector`) then finds zero unresolved frames and
718
+ * resolves each named selector to a normalized percent {@link KeyframeSelector}
719
+ * via {@link namedSelectorToFraction}, and re-compiles. The resolved selector is
720
+ * indistinguishable from an author-written percentage at the sort step, so
721
+ * the play-time guard (`assertNoUnresolvedNamedSelector`) finds zero unresolved frames and
803
722
  * passes silently — so this MUST land before the guard fires (the gate-enforced
804
723
  * sub-wave ordering: the guard over-throws on a bound animation if the resolver
805
724
  * is absent).
@@ -825,7 +744,7 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
825
744
  * custom properties (syntax string, initial value, inheritance
826
745
  * flag) without re-parsing the source CSS.
827
746
  */
828
- propertyRegistry: Map<string, PropertyDescriptor_2>;
747
+ propertyRegistry: Map<string, CSSPropertyDescriptor>;
829
748
  /**
830
749
  * Parsed scroll-grammar (`animation-timeline` / `animation-range` /
831
750
  * `timeline-scope` / `animation-trigger`) recovered from a sibling style rule
@@ -840,7 +759,7 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
840
759
  fromString(keyframes: string, transform?: TransformFunction<V>): this;
841
760
  }
842
761
 
843
- export declare function CSSKeyframesToString<V extends Vars>(animation: KeyframesAnimation<V>, name?: string, printWidth?: number | undefined): Promise<string>;
762
+ export declare function CSSKeyframesToString<V extends Vars>(animation: KeyframesAnimation<V>, name?: string): Promise<string>;
844
763
 
845
764
  /**
846
765
  * Per-stop card serializer for the editor pane — ONE formatted keyframe
@@ -928,8 +847,8 @@ export declare const defaultLayerConfig: AnimationLayerConfig;
928
847
  export declare const defaultOptions: AnimationOptions;
929
848
 
930
849
  /**
931
- * A structured parse/honoring diagnostic (K.W7 S4). Extends the value.js
932
- * parser diagnostic shape (the consumed shape — `message`/`offset`/`line`/
850
+ * A structured parse/honoring diagnostic (K.W7 S4). Extends the Value 4
851
+ * `ParseIssue` shape (the consumed shape — `message`/`offset`/`line`/
933
852
  * `column`/`expected`/`input`) with a stable kf-side {@link DiagnosticCode} and
934
853
  * an optional `property` (the leaf a `COMPOSITION_FALLBACK` names). The
935
854
  * value.js half (`message`/`offset`/…) is `Partial` because the engine-internal
@@ -938,13 +857,15 @@ export declare const defaultOptions: AnimationOptions;
938
857
  * ingest callers that attach source locations.
939
858
  * widens it with the stable code (inv-16 published-only consumption holds).
940
859
  */
941
- declare interface Diagnostic extends Partial<ParseDiagnostic> {
860
+ declare interface Diagnostic extends Omit<Partial<ParseIssue>, "code"> {
942
861
  /** A stable, branch-on-able code — never scrape `message`. */
943
862
  code: DiagnosticCode;
944
863
  /** The human-readable summary (always present; the producer's or kf's). */
945
864
  message: string;
946
865
  /** The CSS property a `COMPOSITION_FALLBACK` refuses to composite. */
947
866
  property?: string;
867
+ /** Original source for a parser issue, when available. */
868
+ input?: string;
948
869
  }
949
870
 
950
871
  /**
@@ -1010,7 +931,7 @@ export declare function drag2D(element: HTMLElement, options?: {
1010
931
  * as additive sugar: the engine stays one-dimensional (KISS); this module is
1011
932
  * the front door that spares every 2-D consumer the two-`Draggable`
1012
933
  * boilerplate. LIGHT — it imports only `Draggable` + `DragOptions` from
1013
- * `./draggable`, so it carries zero static `@mkbabb/value.js` edge.
934
+ * `./draggable`, so it carries only the same rootless Value `/math` leaf.
1014
935
  *
1015
936
  * The `drag/index.ts` barrel re-exports `drag2D` + `Drag2DHandle` (R.W1 — the
1016
937
  * barrel owns the unified surface; no flat-sibling relay through `draggable.ts`).
@@ -1226,8 +1147,8 @@ export declare interface DragOptions {
1226
1147
  * spring's re-seat (`SpringProgress` re-seats the closed-form solution from
1227
1148
  * `(x, v)` so the fling trajectory is continuous with the gesture).
1228
1149
  *
1229
- * LIGHT module: zero static `@mkbabb/value.js` edge. The physics is
1230
- * keyframes-local (the spring solver); this file is pure input plumbing.
1150
+ * LIGHT module: the physics is Keyframes-local, sharing only Value's `/math`
1151
+ * leaf through the spring solver; this file is pure input plumbing.
1231
1152
  *
1232
1153
  * Framework-free by design — plain `addEventListener` + Pointer Capture
1233
1154
  * with explicit teardown. This is library code, not a Vue demo: a consumer
@@ -1328,8 +1249,8 @@ export declare class ElementMorph {
1328
1249
  export declare interface ElementMorphOptions {
1329
1250
  /**
1330
1251
  * Easing as a callable `TimingFunction` or a typed `Easing` —
1331
- * synchronous and value.js-free (`ElementMorph` composes
1332
- * `NumericAnimation`, which enforces the same contract). Resolve a
1252
+ * synchronous and parser-free (`ElementMorph` composes `NumericAnimation`,
1253
+ * which shares only Value's `/math` leaf). Resolve a
1333
1254
  * string name first via `await resolveEasing(name)`.
1334
1255
  */
1335
1256
  timingFunction?: TimingFunction | Easing;
@@ -1352,8 +1273,6 @@ export declare interface EntryCompileOptions {
1352
1273
  * dialog), inert-but-harmless elsewhere, so a caller rarely turns it off.
1353
1274
  */
1354
1275
  overlay?: boolean;
1355
- /** Prettier print-width for the emitted artifact. Omit for the default. */
1356
- printWidth?: number;
1357
1276
  }
1358
1277
 
1359
1278
  /** A single entry refusal — the selector + a typed reason + a human message. */
@@ -1365,7 +1284,7 @@ export declare interface EntryRefusal {
1365
1284
  }
1366
1285
 
1367
1286
  /** The refusal taxonomy — 3 inherited + 6 entry-specific (P2-2.3). */
1368
- export declare type EntryRefusalReason = "custom-renderer" | "weighted-blend" | "computed-unit-drift" | "entry-multi-keyframe" | "entry-iteration" | "entry-composition" | "entry-scroll-grammar" | "entry-color-space" | "entry-easing-twin";
1287
+ export declare type EntryRefusalReason = "custom-renderer" | "weight-blend" | "computed-unit-drift" | "entry-multi-keyframe" | "entry-iteration" | "entry-composition" | "entry-scroll-grammar" | "entry-color-space" | "entry-easing-twin";
1369
1288
 
1370
1289
  /** The per-selector entry/exit role. Each animation is 2-stop (a transition endpoint pair). */
1371
1290
  export declare interface EntryRoleSpec<V extends Vars = Vars> {
@@ -1405,6 +1324,8 @@ declare const fadeOut: PresetFactory;
1405
1324
 
1406
1325
  export declare const FILL_MODES: readonly ["none", "forwards", "backwards", "both"];
1407
1326
 
1327
+ declare type FlatAuthoredValues = Record<string, AuthoredValue | undefined>;
1328
+
1408
1329
  /**
1409
1330
  * Animate a layout change on `element`: measure (First), run `mutate` (Last),
1410
1331
  * measure again, then invert + play the transform between them via
@@ -1448,87 +1369,6 @@ export declare function flipShared(a: HTMLElement, b: HTMLElement, options?: Fli
1448
1369
 
1449
1370
  export declare function formatCSSKeyframeString(keyframe: string): string;
1450
1371
 
1451
- declare class FrameCompiler<V extends Vars = Vars> {
1452
- private readonly _options;
1453
- templateFrames: TemplateAnimationFrame<V>[];
1454
- parsedVars: ParsedVarMap[];
1455
- frames: AnimationFrame<V>[];
1456
- /**
1457
- * Next TEMPLATE frame id — a monotonic handle assigned in `addFrame`
1458
- * (stable across re-parse, since `parse` does not re-add templates).
1459
- * Compiled-frame ids are content-derived from `(startIx, stopIx)`
1460
- * (see `createFrame`), NOT this counter, so `parse()` is idempotent.
1461
- */
1462
- frameId: number;
1463
- /**
1464
- * The compile inputs live on the owning `Animation`'s `options` object.
1465
- * The compiler holds a REFERENCE to it (the setters mutate it in place,
1466
- * never replace it), so the NEXT compile always reads the current
1467
- * `duration`/`easing`/`colorSpace` without re-linking. For values baked
1468
- * into already-compiled frames, the setter triggers a targeted re-derive:
1469
- * `setDuration` rescales `frame.time` in place; `setColorSpace`/
1470
- * `setHueMethod` call {@link renormalizeColors} (the color resolution is
1471
- * the only baked state that depends on them). No setter silently no-ops a
1472
- * change to compiled state.
1473
- */
1474
- constructor(_options: AnimationOptions);
1475
- /**
1476
- * The live options object the compiler reads (a REFERENCE to the owning
1477
- * `Animation`'s `options` — the setters mutate it in place). Read-only:
1478
- * the compiler never replaces it. Exposed so `Animation.adoptCompiled`
1479
- * can re-bind `Animation.options` to the adopted compiler's options object
1480
- * BY CONSTRUCTION (`this.options === this.compiler.options`, the live-options
1481
- * invariant — G.W19 / the `6e29236` lock), without poking a private field.
1482
- */
1483
- get options(): AnimationOptions;
1484
- addFrame<K extends V>(start: number | string | ValueUnit<number>, vars: Partial<K>, transform?: TransformFunction<K>, timingFunction?: InputAnimationOptions["timingFunction"], composition?: CompositeOperator): void;
1485
- createFrame(startIx: number, endIx: number): AnimationFrame<V>;
1486
- /**
1487
- * Build an index mapping each variable name to the frame indices where
1488
- * it appears. Used by reconcileVars() for O(1) "next occurrence" lookups
1489
- * instead of O(N) findIndex scans per variable.
1490
- */
1491
- private buildVarIndex;
1492
- /**
1493
- * Reconcile interpolation variables across non-adjacent keyframes.
1494
- * For each variable at frame `ix`, find the next frame that also
1495
- * defines that variable and create an interpolation segment between them.
1496
- *
1497
- * Uses a pre-built variable index (from buildVarIndex) to avoid
1498
- * O(frames²) findIndex scans.
1499
- */
1500
- reconcileVars(ix: number, varIndex: Map<string, number[]>): void;
1501
- /**
1502
- * Compile `templateFrames` into the sampled `frames[]`. `targets` is the
1503
- * one DOM input — each parsed var is bound to it so computed-unit
1504
- * resolution can read the live box. Pure otherwise.
1505
- */
1506
- parse(targets: HTMLElement[]): void;
1507
- /**
1508
- * Derive a frame's `flatVars`/`vars`/`allInterpVars` from its
1509
- * `interpVars` — the pre-flattened forms the hot path
1510
- * (`interpFrames`) iterates without re-walking. Called once per frame
1511
- * at the tail of `parse`, and again by `renormalizeColors` after a
1512
- * color-space change re-derives the interp carriers in place.
1513
- */
1514
- private finalizeFrameVars;
1515
- /**
1516
- * Re-derive the color-resolved interpolation carriers in place after a
1517
- * `colorSpace`/`hueMethod` change on already-compiled frames. Only the
1518
- * per-`InterpolatedVar` color resolution depends on the color space —
1519
- * the flatten/sort/reconcile structure does not — so this re-runs
1520
- * `createInterpVarValue` over the existing `frames`/`parsedVars` and
1521
- * rebuilds the hot-path arrays, with NO re-flatten and NO re-sort. The
1522
- * new carriers derive from the already-target-bound `parsedVars`, the
1523
- * same provenance `parse` gives them, so DOM binding is preserved.
1524
- *
1525
- * The owning `Animation`'s `setColorSpace`/`setHueMethod` call this when
1526
- * frames already exist; before `parse`, the option is simply read by the
1527
- * next compile.
1528
- */
1529
- renormalizeColors(): void;
1530
- }
1531
-
1532
1372
  /**
1533
1373
  * Build a CSS-native SVG line-drawing animation: read the target's path length
1534
1374
  * ONCE, set `stroke-dasharray` to that length (one solid full-length dash), and
@@ -1653,24 +1493,6 @@ export declare const fromStyleSheets: <V extends Vars = Vars>(source?: Document
1653
1493
  */
1654
1494
  export declare const getAnimationId: (animation: AnimationIdentity | string) => string;
1655
1495
 
1656
- /**
1657
- * Resolve a timing-function input to a callable `TimingFunction`.
1658
- *
1659
- * Accepts:
1660
- * - a `TimingFunction` — returned as-is
1661
- * - a named entry in `timingFunctions` (`ease-out-cubic`,
1662
- * `easeOutCubic`, `linear`, etc.) — looked up in the registry
1663
- * - a CSS `cubic-bezier(x1, y1, x2, y2)` literal string —
1664
- * parsed to control points and resolved via `CSSCubicBezier`
1665
- * - a CSS `steps(n[, position])` literal plus the `step-start` /
1666
- * `step-end` keywords — resolved via `steppedEase`, so the full
1667
- * CSS Easing Level 1 vocabulary round-trips through `fromString`
1668
- * - `undefined` or a name/literal the registry can't find —
1669
- * returns `undefined` so callers can decide (the option setters
1670
- * throw a typed `AnimationOptionError`, fail-explicit)
1671
- */
1672
- export declare const getTimingFunction: (timingFunction: TimingFunction | TimingFunctionNames | string | undefined) => TimingFunction | undefined;
1673
-
1674
1496
  declare const glow: PresetFactory;
1675
1497
 
1676
1498
  declare const gradientBackground: PresetFactory;
@@ -1743,14 +1565,12 @@ export declare type InputAnimationOptions = Partial<{
1743
1565
  useWAAPI: boolean;
1744
1566
  /** When true, snap `play()` to the final frame under `prefers-reduced-motion: reduce`. Default false. */
1745
1567
  respectReducedMotion: boolean;
1746
- colorSpace?: ColorSpace;
1568
+ colorSpace?: SpaceId;
1747
1569
  hueMethod?: HueInterpolationMethod;
1748
1570
  /** The LAYER-level `animation-composition` operator (L.W1 S5). Omission ⇒ `replace`. */
1749
1571
  composite?: CompositeOperator;
1750
1572
  }>;
1751
1573
 
1752
- export { InterpolatedVar }
1753
-
1754
1574
  declare const jumpDown: PresetFactory;
1755
1575
 
1756
1576
  declare const jumpUp: PresetFactory;
@@ -1769,14 +1589,6 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
1769
1589
  superKey: string | undefined;
1770
1590
  targets: HTMLElement[];
1771
1591
  options: AnimationOptions;
1772
- /** The frame-compilation half — template frames → sampled `frames[]`. The
1773
- * class composes one and delegates `addFrame`/`parse` + the frame accessors
1774
- * to it. READ-ONLY surface (G.W19): the backing `_compiler` is written ONLY
1775
- * by the constructor + `adoptCompiled` (via `_setCompiler`); an external
1776
- * `animation.compiler = …` reach-in is a COMPILE error (the live-options
1777
- * desync lock). */
1778
- private _compiler;
1779
- get compiler(): FrameCompiler<V>;
1780
1592
  /** THE rAF owner for this animation — the standalone play loop and the WAAPI
1781
1593
  * shadow tick both ride it, so `stop()` halts either uniformly. */
1782
1594
  readonly playback: RAFPlayback;
@@ -1863,7 +1675,7 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
1863
1675
  get frames(): AnimationFrame<V>[];
1864
1676
  get frameId(): number;
1865
1677
  /** Append a template frame (delegated to the compiler). Chainable. */
1866
- addFrame<K extends V>(start: number | string | ValueUnit<number>, vars: Partial<K>, transform?: TransformFunction<K>, timingFunction?: InputAnimationOptions["timingFunction"], composition?: CompositeOperator): KeyframesAnimation<K>;
1678
+ addFrame<K extends V>(start: number | string | KeyframeSelector, vars: Partial<K>, transform?: TransformFunction<K>, timingFunction?: InputAnimationOptions["timingFunction"], composition?: CompositeOperator): KeyframesAnimation<K>;
1867
1679
  /** Compile the template frames into the sampled `frames[]` (R.W2 body in
1868
1680
  * `./compile-bridge`). Chainable. */
1869
1681
  parse(): this;
@@ -1874,11 +1686,6 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
1874
1686
  * (`proof:adopt-compiled`). Chainable.
1875
1687
  */
1876
1688
  adoptCompiled(source: KeyframesAnimation<V>): this;
1877
- /** INTERNAL (R.W2): the sanctioned backing-field write for `_compiler` (used
1878
- * ONLY by `./compile-bridge`'s `adoptCompiled`). The `compiler` accessor
1879
- * stays get-only — an external `animation.compiler = …` reach-in is a COMPILE
1880
- * error (the G.W19 live-options-desync lock). */
1881
- _setCompiler(compiler: FrameCompiler<V>): void;
1882
1689
  setTimingFunction(timingFunction: InputAnimationOptions["timingFunction"]): this;
1883
1690
  setIterationCount(iterationCount: InputAnimationOptions["iterationCount"]): this;
1884
1691
  setDuration(duration: InputAnimationOptions["duration"]): this;
@@ -1902,18 +1709,29 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
1902
1709
  /** The named-selector PLAY-TIME guard (Q.WD1 S3 — body in `./interpolate`).
1903
1710
  * INTERNAL (R.W2): the play machine + `at()` call it; NOT `private`. */
1904
1711
  assertNoUnresolvedNamedSelector(): void;
1905
- /** Stateless progress query — maps [0,1] from first to last keyframe,
1906
- * direction-agnostic (`apply=true` invokes transforms). Body in
1907
- * `./interpolate`. */
1908
- at(progress: number, apply?: boolean): Record<string, ValueUnit[]>;
1712
+ /**
1713
+ * Sample normalized progress from the first to last keyframe, independent
1714
+ * of playback direction. `apply=true` also invokes transforms.
1715
+ *
1716
+ * The returned map is a borrowed interpolation view, not a snapshot. On
1717
+ * the common single-segment path the engine reuses the frame's authored
1718
+ * value buffer, so a later sample may mutate an earlier reference. Copy the
1719
+ * result (`{ ...animation.at(p) }`) when retaining a historical value.
1720
+ */
1721
+ at(progress: number, apply?: boolean): FlatAuthoredValues;
1909
1722
  /**
1910
1723
  * Interpolate all active frames at time `t` — the hot path (once per rAF
1911
1724
  * frame). R.W2 body in `./interpolate`; this is the thin public sampling
1912
- * delegate the group, sequence, WAAPI build, and `at()` all drive. Zero-alloc
1913
- * + fast-properties contract preserved (proof:standalone-zero-alloc /
1914
- * proof:interp-fastprops).
1915
- */
1916
- interpFrames(t: number, transformFrames?: boolean, out?: Record<string, ValueUnit[]>): Record<string, ValueUnit[]>;
1725
+ * delegate the group, sequence, WAAPI build, and `at()` all drive.
1726
+ *
1727
+ * When `out` is supplied, it is cleared and rewritten in place and returned
1728
+ * by identity; callers own that buffer but must snapshot it before the next
1729
+ * write if they need history. Without `out`, the common single-segment path
1730
+ * may return the engine's borrowed frame buffer, which subsequent samples
1731
+ * mutate. This borrowed-buffer contract is what keeps steady-state sampling
1732
+ * allocation-free.
1733
+ */
1734
+ interpFrames(t: number, transformFrames?: boolean, out?: FlatAuthoredValues): FlatAuthoredValues;
1917
1735
  onStart(): Promise<void> | undefined;
1918
1736
  onEnd(): void;
1919
1737
  advanceTo(t: number): number | Promise<number>;
@@ -1986,15 +1804,6 @@ export declare const loadAnimationEngine: () => Promise<AnimationEngine>;
1986
1804
 
1987
1805
  declare const loopPresets: Readonly<Record<string, PresetFactory>>;
1988
1806
 
1989
- declare interface ManagedStepper<Callback> extends Tickable {
1990
- readonly _playback: RAFPlayback;
1991
- _onFrame: Callback | undefined;
1992
- readonly respectReducedMotion: ReducedMotionPolicy;
1993
- readonly disposed?: boolean;
1994
- snap(): void;
1995
- _emitManagedFrame(): void;
1996
- }
1997
-
1998
1807
  export declare class ManualTimeline extends Timeline {
1999
1808
  private value;
2000
1809
  constructor(options?: TimelineOptions);
@@ -2223,8 +2032,8 @@ export declare class NumericAnimation<T extends Record<string, number>> {
2223
2032
  export declare interface NumericAnimationOptions {
2224
2033
  /**
2225
2034
  * Easing as a callable `TimingFunction` or a typed `Easing` — both
2226
- * synchronous and value.js-free, so this engine never touches the
2227
- * dynamic boundary.
2035
+ * synchronous; this engine shares only Value's `/math` leaf and never
2036
+ * touches the parser/color dynamic boundary.
2228
2037
  *
2229
2038
  * A string easing *name* is NOT accepted here (fail-explicit: it
2230
2039
  * throws). Resolve a name once, up front, through the async factory:
@@ -2251,31 +2060,6 @@ export declare interface NumericAnimationOptions {
2251
2060
  respectReducedMotion?: boolean | undefined;
2252
2061
  }
2253
2062
 
2254
- /**
2255
- * Q.WB3 S2 — the precomputed SoA fold layout for ONE compiled frame's NUMERIC
2256
- * interp subset (the single-animation `processFrame` analog of the compositor's
2257
- * `SoALayerPlan`). Built ONCE at `parse` over the STABLE iv set (the F.W4
2258
- * zero-alloc discipline — NO per-frame allocation):
2259
- * - `numeric` — the numeric ivs (numeric start+stop, NOT computed, NOT color),
2260
- * in slot order. Each iv's interp-carrier `value` is the `ValueUnit` slot the
2261
- * strided write-back fills (the SAME slot `lerpValue` writes today).
2262
- * - `from` / `to` — the packed endpoint `Float64Array`s (`start.value` /
2263
- * `stop.value`), one slot per `numeric[s]`.
2264
- * - `out` — the per-frame scratch the `lerpArray` fold writes into (reused
2265
- * across every frame — zero per-frame alloc).
2266
- * - `boxed` — the residual ivs (color / computed / mixed) the fold CANNOT cover
2267
- * — walked by the existing per-element `lerpValue`, UNCHANGED.
2268
- * The boxed-color tail is the GATED `ColorChannelPlan` consume's frontier (S4,
2269
- * value.js 1.2.0) — NOT this NOW numeric arm.
2270
- */
2271
- declare interface NumericFoldPlan<V extends Vars> {
2272
- numeric: Array<InterpolatedVar<V>>;
2273
- from: Float64Array;
2274
- to: Float64Array;
2275
- out: Float64Array;
2276
- boxed: Array<InterpolatedVar<V>>;
2277
- }
2278
-
2279
2063
  /** Callback invoked each frame during `.play()` with the interpolated values. */
2280
2064
  export declare type NumericFrameCallback<T extends Record<string, number>> = (values: T) => void;
2281
2065
 
@@ -2387,13 +2171,13 @@ export declare type OscillatorWaveform = "sine" | "triangle" | "square" | "sawto
2387
2171
 
2388
2172
  declare const parallaxScroll: PresetFactory;
2389
2173
 
2390
- declare type ParsedVarMap = Record<string, ValueArray>;
2174
+ declare type ParsedVarMap = Record<string, CssValue>;
2391
2175
 
2392
2176
  /**
2393
2177
  * SO-1 PARSE — extract the full scroll-grammar (`animation-timeline` /
2394
2178
  * `animation-range` / `timeline-scope` / `animation-trigger`) from a scroll-
2395
2179
  * driven stylesheet (string OR a pre-parsed `Stylesheet`) into a typed
2396
- * `CSSTimelineOptions`. Consumes value.js 0.13.0's `extractTimelineOptions` over
2180
+ * `CSSTimelineOptions`. Consumes Value 4's `extractTimelineOptions` over
2397
2181
  * the parsed stylesheet — the acyclic-spine consume edge (the grammar lives in
2398
2182
  * value.js, where the `animation-*` parsing already lives; kf re-derives no
2399
2183
  * parallel name table).
@@ -2440,28 +2224,6 @@ export declare function pinCSS(opts?: {
2440
2224
  bottom?: number;
2441
2225
  }): string;
2442
2226
 
2443
- declare interface PlainLeafWriter {
2444
- /** The nested parent object the leaf lives on. */
2445
- obj: Record<string, unknown>;
2446
- /** The leaf's own (last dot-segment) key on `obj`. */
2447
- key: string;
2448
- /** The live `ValueUnit[]` whose `.value`(s) the interp stride mutates in place. */
2449
- units: ValueUnit[];
2450
- /**
2451
- * True iff the leaf is a single unitless numeric unit → write `.value` (a
2452
- * bare `number`, zero-alloc). False → a units/color/multi-component leaf,
2453
- * projected to its authored STRING each refresh (the units/color residual).
2454
- */
2455
- numeric: boolean;
2456
- }
2457
-
2458
- declare interface PlainProjection {
2459
- /** The nested plain object a custom `transform` consumes (`plainVars`). */
2460
- root: Record<string, unknown>;
2461
- /** The per-leaf refresh writers, in flat-key order. */
2462
- writers: PlainLeafWriter[];
2463
- }
2464
-
2465
2227
  /**
2466
2228
  * `engine/playback-state.ts` — the `PlaybackState` run-state STORE, carved off
2467
2229
  * `engine/play-lifecycle.ts` at S.B2 on the STATE↔BEHAVIOR cohesion seam (the
@@ -2798,11 +2560,11 @@ export declare interface ResolvedKeyframes {
2798
2560
  */
2799
2561
  composition: Map<string, string>;
2800
2562
  /** `@property --foo { ... }` registry */
2801
- properties: Map<string, PropertyDescriptor_2>;
2563
+ properties: Map<string, CSSPropertyDescriptor>;
2802
2564
  /**
2803
2565
  * `@function --foo(...) { ... }` descriptor registry (P.W13 — the emerging-CSS
2804
- * resolve seam). Collected via value.js `extractFunctions` exactly as
2805
- * `properties` is collected via `extractProperties`. Threaded into the
2566
+ * resolve seam). Collected via Value's `collectCustomFunctions` exactly as
2567
+ * `properties` is collected via `collectPropertyDescriptors`. Threaded into the
2806
2568
  * {@link resolveValues} pass's {@link ResolveContext} so the dashed-function
2807
2569
  * `@function` CALL-inlining lands greenable the moment value.js-P publishes
2808
2570
  * the call-parse arm; the descriptor is captured NOW (a read-only registry —
@@ -2815,12 +2577,12 @@ export declare interface ResolvedKeyframes {
2815
2577
  * `animation` shorthand or longhand declarations (if any). Empty
2816
2578
  * when the input has no matching style rule.
2817
2579
  */
2818
- options: ReturnType<typeof extractAnimationOptions>;
2580
+ options: CSSAnimationOptions;
2819
2581
  /**
2820
2582
  * Structured parse/honoring diagnostics (K.W7 S4) — every SILENT fallback
2821
2583
  * the resolve path used to swallow, now a citable row. CONSUMES the value.js
2822
- * 0.12.0 `ParseDiagnostic`/`OnParseError` producer (N2 row 10): a failed
2823
- * parse surfaced through `OnParseError` lands here as a `PARSE_ERROR` row,
2584
+ * Value 4 `ParseIssue` producer: a failed parse lands here as a
2585
+ * `PARSE_ERROR` row,
2824
2586
  * and the kf-side fallbacks (`EMPTY_PARSE`, and the engine's
2825
2587
  * `COMPOSITION_FALLBACK`) join it. A FLAT additive array with stable
2826
2588
  * {@link DiagnosticCode}s, NOT a logging framework. Empty on a clean parse.
@@ -2830,7 +2592,7 @@ export declare interface ResolvedKeyframes {
2830
2592
  /**
2831
2593
  * The parsed CSS `Stylesheet` AST the resolve walked (L.W2 S1). Surfaced so a
2832
2594
  * caller can recover scroll-grammar (`animation-timeline`/`animation-range`)
2833
- * from the SAME parse via `extractTimelineOptions(resolved.stylesheet)` —
2595
+ * from the SAME parse via `collectTimelineOptions(resolved.stylesheet)` —
2834
2596
  * `CSSKeyframesAnimation.fromString` threads it onto `scrollOptions` so the
2835
2597
  * compiler's EMIT half (CC-6) can serialize the scroll longhands back out. A
2836
2598
  * read-only metadata field; the keyframe/option resolution is unchanged.
@@ -2896,8 +2658,7 @@ declare interface ResolveEnv {
2896
2658
  /**
2897
2659
  * Normalise a CSS string (or pre-parsed Stylesheet) into the shape
2898
2660
  * `CSSKeyframesAnimation.fromString` consumes. The single entry
2899
- * point: replaces the legacy `parseCSSKeyframes` /
2900
- * `parseCSSStyleBlock` / `parseCSSAnimationKeyframes` fork.
2661
+ * point, replacing the former multi-parser fork.
2901
2662
  *
2902
2663
  * Bare keyframe-stop lists (`from { … } to { … }`) historically work even
2903
2664
  * though they are not valid top-level CSS. F.W8 decides that on the parsed
@@ -3567,57 +3328,6 @@ export declare interface SmoothProgressOptions {
3567
3328
  /** A `.snap()` snap point — a local progress in [0,1] the scene settles to. */
3568
3329
  export declare type SnapPoints = readonly number[];
3569
3330
 
3570
- /**
3571
- * P.W2 — the precomputed SoA fold layout for ONE `add`/`weighted` blend layer.
3572
- * `carriers[s]`/`incomings[s]` are the stable `ValueUnit<number>` refs the boxed
3573
- * inner loop would have touched at slot `s` (the carrier is the leaf a lower
3574
- * layer parked in `_grouped`; the incoming is this layer's `entry.values` leaf —
3575
- * both alias `frame.flatVars` units whose `.value` `interpFrames` mutates in
3576
- * place, so the refs are frame-stable). The per-frame fold seeds the composite
3577
- * buffer from each carrier, applies the layer's op (`+=` for `add`, `lerp(...,w)`
3578
- * for `weighted`) against the incoming, and writes back — replacing the
3579
- * per-frame `for..in` + `Array.isArray` + per-element `isNumericUnit` dispatch
3580
- * with a contiguous numeric loop. The `entry` is carried for the `weighted`
3581
- * arm's per-LAYER `w = layer.weightSpring?.value ?? layer.weight` read (K.W11
3582
- * PHYS-C).
3583
- */
3584
- declare interface SoALayerPlan {
3585
- /**
3586
- * The layer config — the `weighted` fold re-reads its per-frame `w =
3587
- * weightSpring?.value ?? weight` LIVE (K.W11 PHYS-C, so a spring still drives
3588
- * the blend), and the config is generic-independent so the plan holds it
3589
- * without binding the group's `V`.
3590
- */
3591
- layer: AnimationLayerConfig;
3592
- weighted: boolean;
3593
- /** The pure-numeric carrier units the fold seeds the composite buffer from + writes back to. */
3594
- carriers: ValueUnit<number>[];
3595
- /** The incoming numeric units folded against each carrier (parallel to `carriers`). */
3596
- incomingSlots: Array<{
3597
- values: Record<string, unknown>;
3598
- key: string;
3599
- index: number;
3600
- }>;
3601
- /**
3602
- * The keys this layer touches that the SoA fold does NOT cover — a non-array
3603
- * carrier (first-touch of a key, or a scalar that a lower layer left
3604
- * `undefined`), or a leaf with ANY non-numeric / mixed element. These keep
3605
- * the boxed per-element path (the `Array.isArray` guard + the
3606
- * `Math.min(existing.length, incoming.length)` element loop), so the
3607
- * `add`/`weighted` blend stays byte-identical on the non-numeric tail. EMPTY
3608
- * for the dominant all-numeric transform shape (every leaf a numeric
3609
- * `ValueUnit[]`), so the whole `for..in` collapses to the SoA fold.
3610
- *
3611
- * S.F5a S1 — a precomputed `Set`, built ONCE here at `buildSoAPlans`
3612
- * (structural-change time). The compositor's boxed residual (`boxedBlendArm`)
3613
- * takes it DIRECTLY as its `only` membership test — killing the per-frame
3614
- * `new Set(only)` the boxed arm rebuilt every frame on the mixed-leaf shape
3615
- * (the allocation is hoisted to plan-build time, `proof:zero-alloc`
3616
- * mixed-leaf clause).
3617
- */
3618
- boxedKeys: Set<string>;
3619
- }
3620
-
3621
3331
  declare const spinner: PresetFactory;
3622
3332
 
3623
3333
  /** The split granularity. `"word"`/`"grapheme"` are layout-independent; `"line"`
@@ -3812,30 +3522,6 @@ export declare interface SpringLinearStopsOptions {
3812
3522
  maxDuration?: number;
3813
3523
  }
3814
3524
 
3815
- /**
3816
- * The managed-playback surface a `SpringProgress` exposes to the colocated
3817
- * `./managed-play` loop helpers (S.B5 — the progress.ts ceiling carve). Declared
3818
- * HERE (the spring family's ring-break home) so `managed-play.ts` drives the
3819
- * spring's rAF loop through a structural contract WITHOUT importing the
3820
- * `SpringProgress` class module — keeping the progress→managed-play edge
3821
- * one-directional (no import cycle under `tsPreCompilationDeps`). The stepper is
3822
- * a `Tickable` (the `RAFPlayback.drive` loop steps `tickDt` until `settled`); the
3823
- * helpers additionally read its current `(value, velocity)` for the per-frame
3824
- * callback and route the reduced-motion snap through `snap()`.
3825
- */
3826
- declare interface SpringPlayback extends ManagedStepper<SpringFrameCallback> {
3827
- /** True once `dispose()` has torn the spring down (a disposed spring never plays). */
3828
- readonly disposed: boolean;
3829
- /** Current position — passed to the per-frame callback. */
3830
- readonly value: number;
3831
- /** Current velocity — passed to the per-frame callback. */
3832
- readonly velocity: number;
3833
- /** The reduced-motion policy routing `play` to snap vs. run. */
3834
- readonly respectReducedMotion: ReducedMotionPolicy;
3835
- /** The reduced-motion snap (jump to target at zero velocity, settle, emit). */
3836
- snap(): void;
3837
- }
3838
-
3839
3525
  declare const springPop: PresetFactory;
3840
3526
 
3841
3527
  /**
@@ -3856,10 +3542,10 @@ declare const springPop: PresetFactory;
3856
3542
  *
3857
3543
  * API mirrors SwiftUI's `.spring(response:dampingFraction:)`.
3858
3544
  */
3859
- export declare class SpringProgress implements SpringPlayback {
3545
+ export declare class SpringProgress {
3860
3546
  private options;
3861
3547
  /** The reduced-motion policy — read by `./managed-play`'s `springPlay` to
3862
- * route the snap vs. run branch (the {@link SpringPlayback} contract). */
3548
+ * route the snap vs. run branch. */
3863
3549
  get respectReducedMotion(): ReducedMotionPolicy;
3864
3550
  private targetValue;
3865
3551
  private currentValue;
@@ -4218,7 +3904,7 @@ export declare type SVGDrawTarget = SVGElement & {
4218
3904
 
4219
3905
  export declare interface TemplateAnimationFrame<V extends Vars> {
4220
3906
  id: number;
4221
- start: ValueUnit;
3907
+ start: KeyframeSelector;
4222
3908
  vars: V;
4223
3909
  transform?: TransformFunction<V>;
4224
3910
  timingFunction?: Easing;
@@ -4315,8 +4001,8 @@ export declare abstract class Timeline {
4315
4001
  export declare interface TimelineOptions {
4316
4002
  /**
4317
4003
  * Easing as a callable `TimingFunction` or a typed `Easing` — both
4318
- * synchronous and value.js-free, so the `Timeline` family never touches
4319
- * the dynamic boundary.
4004
+ * synchronous and parser-free, so the `Timeline` family never touches the
4005
+ * heavy boundary; its only Value runtime edge is the shared `/math` leaf.
4320
4006
  *
4321
4007
  * A string easing *name* is NOT accepted here (fail-explicit: it
4322
4008
  * throws). Resolve a name once, up front, through the async factory:
@@ -4341,7 +4027,7 @@ export declare interface TimelineOptions {
4341
4027
 
4342
4028
  export declare type TimingFunction = (t: number) => number;
4343
4029
 
4344
- export declare type TimingFunctionNames = keyof typeof timingFunctions;
4030
+ export declare type TimingFunctionNames = BezierPresetName | "steps" | "ease-in-bounce" | "easeOutCubic" | "easeInOutSine" | "easeInOutCubic" | "easeInOutQuad" | "easeInOutExpo" | "easeInOutCirc" | "easeOutExpo" | "smoothStep3" | "easeInBounce";
4345
4031
 
4346
4032
  /**
4347
4033
  * Normalize a callable or typed easing to {@link Easing}. Synchronous and
@@ -4351,14 +4037,7 @@ export declare const toEasing: (input: TimingFunction | Easing) => Easing;
4351
4037
 
4352
4038
  export declare type TransformFunction<V extends Vars> = (v: V, t: number) => void;
4353
4039
 
4354
- /**
4355
- * Default DOM-style renderer used by `Animation.transform` when no
4356
- * user-supplied transform is provided. "Is this the default renderer?"
4357
- * is decided by reference comparison against the Animation instance's
4358
- * one `_defaultTransform` (`usesDefaultRenderer`) — typed and
4359
- * bind-proof, not a Symbol tag a wrapper would silently drop.
4360
- */
4361
- export declare function transformTargetsStyle<V extends Vars>(vars: V, targets: HTMLElement[], flat?: boolean): void;
4040
+ export declare function transformTargetsStyle<V extends Vars>(vars: V, targets: HTMLElement[]): void;
4362
4041
 
4363
4042
  /** The play direction a trigger cycle runs — `alternate` flips it each entry. */
4364
4043
  export declare type TriggerDirection = "forward" | "backward";
@@ -4455,11 +4134,11 @@ export declare class UnknownEasingError extends Error {
4455
4134
 
4456
4135
  /**
4457
4136
  * `validate(css, opts?)` — the READ-ONLY projection over the three typed channels
4458
- * onto one {@link ValidateResult} envelope. Async because `compileToCSS` is (its
4459
- * Prettier pass).
4137
+ * onto one {@link ValidateResult} envelope. Async because `compileToCSS` retains
4138
+ * its Promise contract while producing deterministic CSS directly.
4460
4139
  *
4461
4140
  * The pipeline:
4462
- * 1. `parseCSSStylesheet(css)` → the AST; `parseable` is true when value.js
4141
+ * 1. `parseStylesheet(css)` → the AST; `parseable` is true when Value
4463
4142
  * surfaced at least one recognized item and the resolve raised no
4464
4143
  * `PARSE_ERROR` (the spec-faithful reality — a dropped `!important` decl is
4465
4144
  * not a parse failure).
@@ -4709,7 +4388,7 @@ export declare function waveformValue(phase: number, waveform: OscillatorWavefor
4709
4388
  * `tickDt` + `settled`); typing it as this narrow shape — NOT importing
4710
4389
  * `SpringProgress` — keeps `constants.ts` from gaining a class edge and lets
4711
4390
  * a consumer drive a layer's weight with ANY analytic stepper (a decay glide,
4712
- * a custom `Tickable`). The read is one nullish access in the `weighted` blend
4391
+ * a custom `Tickable`). The read is one nullish access in the weight blend
4713
4392
  * leaf; the group's managed loop advances it per frame via `tickDt`.
4714
4393
  */
4715
4394
  export declare interface WeightStepper {