@mkbabb/keyframes.js 5.2.0 → 5.3.1

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,23 +1,23 @@
1
- import { AnimationRangeValue } from '@mkbabb/value.js';
2
- import { AnimationTimelineValue } from '@mkbabb/value.js';
3
- import { AnimationTriggerValue } from '@mkbabb/value.js';
4
- import { ColorSpace } from '@mkbabb/value.js';
5
- import { CSSTimelineOptions } from '@mkbabb/value.js';
6
- import { CustomFunctionDescriptor } from '@mkbabb/value.js';
7
- import { extractAnimationOptions } from '@mkbabb/value.js';
8
- import { HueInterpolationMethod } from '@mkbabb/value.js';
9
- import { InterpolatedVar } from '@mkbabb/value.js';
10
- import { ParseDiagnostic } from '@mkbabb/value.js';
11
- import { PropertyDescriptor as PropertyDescriptor_2 } from '@mkbabb/value.js';
12
- import { RangeBoundary } from '@mkbabb/value.js';
13
- import { RangePhase } from '@mkbabb/value.js';
14
- import { Stylesheet } from '@mkbabb/value.js';
15
- import { timingFunctions } from '@mkbabb/value.js';
16
- import { TriggerType } from '@mkbabb/value.js';
17
- import { ValueArray } from '@mkbabb/value.js';
18
- import { ValueUnit } from '@mkbabb/value.js';
19
-
20
- declare const accordionExpand: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
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';
8
+ 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';
19
+
20
+ declare const accordionExpand: PresetFactory;
21
21
 
22
22
  /**
23
23
  * The outcome of an {@link adoptRunning} takeover. `animation` is the kf object
@@ -62,7 +62,7 @@ export declare interface AdoptResult<V extends Vars = Vars> {
62
62
  * // the kf object now drives `el` from the exact playhead — no visible seam.
63
63
  * animation?.pause(); // ...now scrub / spring-ify / re-color it.
64
64
  */
65
- declare const adoptRunning: <V extends Vars = Vars>(el: Element, options: AdoptRunningOptions) => Promise<AdoptResult<V>>;
65
+ export declare const adoptRunning: <V extends Vars = Vars>(el: Element, options: AdoptRunningOptions) => Promise<AdoptResult<V>>;
66
66
 
67
67
  /** Options for {@link adoptRunning}. */
68
68
  export declare interface AdoptRunningOptions extends IngestOptions {
@@ -82,102 +82,51 @@ export declare interface AdoptRunningOptions extends IngestOptions {
82
82
  commit?: boolean;
83
83
  }
84
84
 
85
- /**
86
- * The value.js-bearing engine surface, resolved through `loadAnimationEngine()`.
87
- *
88
- * Spelled as an explicit interface (rather than `typeof import("./engine")`)
89
- * because the dts roll-up — API Extractor — cannot resolve a `typeof import()`
90
- * type node that points at an internal module. The shape stays in lockstep
91
- * with `./engine`'s runtime exports.
92
- */
93
85
  export declare interface AnimationEngine {
94
- /** The core engine base class (CSS-keyframe parsing + playback). */
95
86
  KeyframesAnimation: typeof KeyframesAnimation;
96
- /** The CSS-parsing `CSSKeyframesAnimation` subclass — the primary "in". */
97
87
  CSSKeyframesAnimation: typeof CSSKeyframesAnimation;
98
- /** Multi-animation compositor (replace/add/weighted layer blending). */
99
88
  AnimationGroup: typeof AnimationGroup;
100
- /** Stable string id for an animation (or string passthrough). */
101
- getAnimationId: (animation: KeyframesAnimation | string) => string;
102
- /** Easing name/literal → a typed `TimingFunction` (value.js registry). */
103
- getTimingFunction: (timingFunction: TimingFunction | TimingFunctionNames | string | undefined) => TimingFunction | undefined;
104
- /** CSS `@keyframes` text/stylesheet → resolved keyframes. */
105
- resolveKeyframes: (input: string | Stylesheet) => ResolvedKeyframes;
106
- /** CSS-native MotionPath — offset-distance over an author offset-path. */
89
+ getAnimationId: typeof getAnimationId;
90
+ getTimingFunction: typeof getTimingFunction;
91
+ resolveKeyframes: typeof resolveKeyframes;
107
92
  MotionPath: typeof MotionPath;
108
- /** Construct a MotionPath sweep over a target. */
109
93
  fromMotionPath: typeof fromMotionPath;
110
- /** CSS-native DrawSVG — stroke-dashoffset sweep over the path length. */
111
94
  DrawSVG: typeof DrawSVG;
112
- /** Construct a DrawSVG line-draw over an SVG geometry target. */
113
95
  fromDrawSVG: typeof fromDrawSVG;
114
- /** SVG path-shape morphing over value.js's `PathGeometry`. */
115
96
  MorphSVG: typeof MorphSVG;
116
- /** Construct a MorphSVG between two `d` strings. */
117
97
  fromMorphSVG: typeof fromMorphSVG;
118
- /** The preset library (`fadeIn`, `bounce`, `shake`, …) as a namespace. */
119
98
  presets: typeof AnimationPresets;
120
- /** The valid `direction` values, as a const tuple. */
121
99
  DIRECTIONS: readonly AnimationOptions["direction"][];
122
- /** The valid `fillMode` values, as a const tuple. */
123
100
  FILL_MODES: readonly AnimationOptions["fillMode"][];
124
- /** The `AnimationOptions` defaults. */
125
101
  defaultOptions: AnimationOptions;
126
- /** The per-layer blend-config defaults. */
127
102
  defaultLayerConfig: AnimationLayerConfig;
128
- /** Walk the document's stylesheets → reconstructed kf animations + CORS diagnostics. */
129
103
  fromStyleSheets: typeof fromStyleSheets;
130
- /** Narrow to the names currently RUNNING via `getAnimations()`. */
131
104
  fromLiveAnimations: typeof fromLiveAnimations;
132
- /** The lowest-level live-CSSOM walk (live analogue of `resolveKeyframes`). */
133
105
  resolveLiveKeyframes: typeof resolveLiveKeyframes;
134
- /** Mid-flight takeover of a running CSS animation (currentTime handoff). */
135
106
  adoptRunning: typeof adoptRunning;
136
- /** Scroll-driven animation as CSS — the JS driver over a parsed scroll grammar. */
137
107
  ScrollScene: typeof ScrollScene;
138
- /** Construct a `ScrollScene` driver. */
139
108
  createScrollScene: typeof createScrollScene;
140
- /** Parse a scroll-as-CSS rule → typed scroll options. */
109
+ driveScrollCSS: typeof driveScrollCSS;
141
110
  parseScrollCSS: typeof parseScrollCSS;
142
- /** Parse an `animation-timeline` value. */
143
111
  parseScrollTimeline: typeof parseScrollTimeline;
144
- /** Parse an `animation-range` value. */
145
112
  parseScrollRange: typeof parseScrollRange;
146
- /** Serialize scroll options back to valid CSS. */
147
113
  serializeScrollOptions: typeof serializeScrollOptions;
148
- /** Round-trip scroll CSS (parse → serialize). */
149
114
  roundTripScrollCSS: typeof roundTripScrollCSS;
150
- /** Conservative-correct scroll backend dispatch. */
151
115
  dispatchScrollBackend: typeof dispatchScrollBackend;
152
- /** Resolve a scroll `animation-range` to concrete boundaries. */
153
116
  resolveRange: typeof resolveRange;
154
- /** `position:sticky` pin synthesis. */
155
117
  pinCSS: typeof pinCSS;
156
- /** The discrete `animation-trigger` lifecycle driver (idle→active→done). */
157
118
  TriggerScene: typeof TriggerScene;
158
- /** Construct a `TriggerScene` from a parsed trigger / scroll options. */
159
119
  createTriggerScene: typeof createTriggerScene;
160
- /** Feature-detect native `animation-trigger` (Chrome 145+; never UA-sniffed). */
161
120
  supportsNativeTrigger: typeof supportsNativeTrigger;
162
- /** The round-trip's BACKWARD half: orchestration graph → zero-runtime CSS. */
163
121
  compileToCSS: typeof compileToCSS;
164
- /** S.F1 — compile a name-keyed VT role spec → zero-runtime `::view-transition-*` CSS. */
165
122
  compileToViewTransition: typeof compileToViewTransition;
166
- /** S.F3 — compile a selector-keyed entry/exit spec → zero-runtime `@starting-style` CSS. */
167
123
  compileToEntry: typeof compileToEntry;
168
- /** Read-only validation envelope over the compile/adapter/WAAPI channels. */
169
124
  validate: typeof validate;
170
- /** Format the `validate` verdict as deterministic human/LLM-readable text. */
171
125
  explain: typeof explain;
172
- /** Re-serialize parsed keyframes back to a CSS string. */
173
126
  CSSKeyframesToString: typeof CSSKeyframesToString;
174
- /** Re-serialize parsed keyframes back to per-rule CSS strings. */
175
127
  CSSKeyframesToStrings: typeof CSSKeyframesToStrings;
176
- /** Trim one keyframe body for display. */
177
128
  formatCSSKeyframeString: typeof formatCSSKeyframeString;
178
- /** Paint a `Vars` snapshot onto DOM targets (the run-loop painter). */
179
129
  transformTargetsStyle: typeof transformTargetsStyle;
180
- /** The engine's INP-relief yield ladder. */
181
130
  yieldToMain: typeof yieldToMain;
182
131
  }
183
132
 
@@ -274,6 +223,14 @@ export declare class AnimationGroup<V extends Vars> {
274
223
  lastTickTime: number;
275
224
  /** THE rAF owner for the group's draw loop. */
276
225
  readonly playback: RAFPlayback;
226
+ /** Native effects installed by the additive group-WAAPI fast lane.
227
+ * INTERNAL: lifecycle owns pause/resume/cancel; an empty array means the
228
+ * group is on its ordinary rAF compositor path. */
229
+ readonly _waAnimations: globalThis.Animation[];
230
+ /** True while the current play is delegated to native effects. The group
231
+ * still runs its shadow transport loop so events and completion retain the
232
+ * rAF contract, but it does not overwrite native compositor output. */
233
+ _waapiDelegated: boolean;
277
234
  resolvePromise: ((value: void | PromiseLike<void>) => void) | null;
278
235
  /** The ONE held play promise the `finished` front-door exposes. INTERNAL
279
236
  * (S.B5) — read/written by the transport free functions in `./lifecycle`. */
@@ -286,6 +243,7 @@ export declare class AnimationGroup<V extends Vars> {
286
243
  private _entriesDirty;
287
244
  /** Long-lived composite buffer, cleared in place each frame (zero-alloc).
288
245
  * INTERNAL (R.W2) — read/written by `./compositor`. */
246
+ readonly _compositeState: CompositeState;
289
247
  _grouped: Record<string, unknown>;
290
248
  /** The compile-stable union of every child's contributed keys — what `_grouped`
291
249
  * is null-filled to each frame so the composite clears WITHOUT `delete` (F.W4
@@ -362,7 +320,7 @@ export declare class AnimationGroup<V extends Vars> {
362
320
  * draw loop owns the ticking). Body in `./lifecycle` (S.B5). */
363
321
  resume(): this;
364
322
  /** The explicit flip: pauses if playing, resumes if paused. */
365
- toggle(): this;
323
+ toggle(): void;
366
324
  /** Pure state teardown — never paints. Releases every child (`managed = false`,
367
325
  * `child.settle()`) and clears the group flags. Body in `./lifecycle` (S.B5). */
368
326
  settle(): this;
@@ -405,15 +363,37 @@ export declare interface AnimationGroupEntry<V extends Vars> {
405
363
  }
406
364
 
407
365
  /** Input — a bare Animation or one with a layer config. */
408
- declare type AnimationGroupInput<V extends Vars> = KeyframesAnimation<V> | {
366
+ export declare type AnimationGroupInput<V extends Vars> = KeyframesAnimation<V> | {
409
367
  animation: KeyframesAnimation<V>;
410
368
  layer?: Partial<AnimationLayerConfig>;
411
369
  };
412
370
 
413
- declare interface AnimationGroupObject<V extends Vars> {
371
+ export declare interface AnimationGroupObject<V extends Vars> {
414
372
  [key: string]: AnimationGroupEntry<V>;
415
373
  }
416
374
 
375
+ /**
376
+ * `internal/animation-id.ts` — the shared animation-identity helper (R.W2c).
377
+ *
378
+ * `getAnimationId` was a static member of `engine/animation.ts`, which made
379
+ * `group/group.ts` + `group/entries.ts` reach BACK into the engine zone at
380
+ * runtime purely to resolve a name — one of the two runtime edges that closed
381
+ * the engine↔group ring. It is pure string logic over the minimal identity
382
+ * shape (`{ name?, id }`) every animation already carries, so it belongs in the
383
+ * value.js-free leaf zone, depending on neither engine nor group.
384
+ *
385
+ * Structural by design: it takes `AnimationIdentity` (NOT `KeyframesAnimation`)
386
+ * so it carries ZERO edge to the engine class. The engine barrel re-exports it
387
+ * for the public `getAnimationId` surface; group/compile read it from here.
388
+ *
389
+ * value.js-free (LIGHT).
390
+ */
391
+ /** The minimal identity shape every animation carries — name (optional) + numeric id. */
392
+ declare interface AnimationIdentity {
393
+ name?: string | undefined;
394
+ id: number;
395
+ }
396
+
417
397
  export declare interface AnimationLayerConfig {
418
398
  /** Higher wins. Default: 0 */
419
399
  zIndex: number;
@@ -439,6 +419,8 @@ export declare interface AnimationLayerConfig {
439
419
  * blends by replacement, the least-surprising composite.
440
420
  */
441
421
  blendMode: BlendMode;
422
+ /** Canonical composition operation. Omission preserves `blendMode` callers. */
423
+ op?: CompositeOperator;
442
424
  /** Layer toggle. Default: true */
443
425
  enabled: boolean;
444
426
  /** Optional property whitelist — only these properties will be output from this layer */
@@ -585,26 +567,22 @@ export { AnimationRangeValue }
585
567
 
586
568
  export { AnimationTimelineValue }
587
569
 
588
- /** Attention animations — a one-shot nudge to draw the eye. */
589
- declare const attentionPresets: {
590
- readonly pulse: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
591
- readonly shake: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
592
- readonly bounce: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
593
- readonly flip: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
594
- readonly notificationBounce: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
595
- readonly springPop: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
596
- readonly springWobble: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
597
- };
570
+ declare const attentionPresets: Readonly<Record<string, PresetFactory>>;
598
571
 
599
- export declare type BlendMode = "replace" | "add" | "weighted";
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";
600
578
 
601
- declare const blurIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
579
+ declare const blurIn: PresetFactory;
602
580
 
603
- declare const blurInOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
581
+ declare const blurInOut: PresetFactory;
604
582
 
605
- declare const blurOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
583
+ declare const blurOut: PresetFactory;
606
584
 
607
- declare const bounce: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
585
+ declare const bounce: PresetFactory;
608
586
 
609
587
  /** The compile result — the artifact + the CC-3 ineligibility report. */
610
588
  export declare interface CompiledCSS {
@@ -647,6 +625,12 @@ export declare type CompileInput<V extends Vars = Vars> = AnimationGroup<V> | Se
647
625
  animation: KeyframesAnimation<V>;
648
626
  }>;
649
627
 
628
+ /**
629
+ * The reason a child could not compile faithfully. Generalizes
630
+ * `waapiIneligibleReason` to the CSS-compile domain — the trust surface. Each
631
+ * names the kf axis that exceeds pure CSS (the refusal is marketing for the
632
+ * moat). A refused child's JS playback is the only faithful path.
633
+ */
650
634
  /** Options for {@link compileToCSS}. */
651
635
  export declare interface CompileOptions {
652
636
  /**
@@ -676,21 +660,12 @@ export declare interface CompileOptions {
676
660
  printWidth?: number;
677
661
  }
678
662
 
679
- /** A single refusal — the child name + a typed reason + a human message. */
680
663
  export declare interface CompileRefusal {
681
- /** The compiled child's class/animation name. */
682
664
  name: string;
683
665
  reason: CompileRefusalReason;
684
- /** The verbatim message the demo's ineligibility UI shows (CC-4). */
685
666
  message: string;
686
667
  }
687
668
 
688
- /**
689
- * The reason a child could not compile faithfully. Generalizes
690
- * `waapiIneligibleReason` to the CSS-compile domain — the trust surface. Each
691
- * names the kf axis that exceeds pure CSS (the refusal is marketing for the
692
- * moat). A refused child's JS playback is the only faithful path.
693
- */
694
669
  export declare type CompileRefusalReason = "weighted-blend" | "custom-renderer" | "perceptual-oklab" | "computed-unit-drift";
695
670
 
696
671
  /**
@@ -705,7 +680,7 @@ export declare type CompileRefusalReason = "weighted-blend" | "custom-renderer"
705
680
  *
706
681
  * @returns `{ css, eligible, refusals }` — the artifact + the trust surface.
707
682
  */
708
- declare function compileToCSS<V extends Vars>(input: CompileInput<V>, opts?: CompileOptions): Promise<CompiledCSS>;
683
+ export declare function compileToCSS<V extends Vars>(input: CompileInput<V>, opts?: CompileOptions): Promise<CompiledCSS>;
709
684
 
710
685
  /**
711
686
  * THE ENTRY/EXIT EMITTER (C-22 revised, P2-2) — compile a selector-keyed
@@ -719,7 +694,7 @@ declare function compileToCSS<V extends Vars>(input: CompileInput<V>, opts?: Com
719
694
  *
720
695
  * @returns `{ css, eligible, refusals }`.
721
696
  */
722
- declare function compileToEntry<V extends Vars>(spec: Record<string, EntryRoleSpec<V>>, opts?: EntryCompileOptions): Promise<CompiledEntryCSS>;
697
+ export declare function compileToEntry<V extends Vars>(spec: Record<string, EntryRoleSpec<V>>, opts?: EntryCompileOptions): Promise<CompiledEntryCSS>;
723
698
 
724
699
  /**
725
700
  * THE VIEW-TRANSITIONS EMITTER (SF-1/SF-2/SF-3) — compile a name-keyed role spec
@@ -732,7 +707,7 @@ declare function compileToEntry<V extends Vars>(spec: Record<string, EntryRoleSp
732
707
  *
733
708
  * @returns `{ css, eligible, refusals, names }` — the artifact + the trust surface.
734
709
  */
735
- declare function compileToViewTransition<V extends Vars>(spec: Record<string, VTRoleSpec<V>>, opts?: ViewTransitionCompileOptions): Promise<CompiledViewTransitionCSS>;
710
+ export declare function compileToViewTransition<V extends Vars>(spec: Record<string, VTRoleSpec<V>>, opts?: ViewTransitionCompileOptions): Promise<CompiledViewTransitionCSS>;
736
711
 
737
712
  /**
738
713
  * The CSS `animation-composition` operator (K.W7). Distinct from
@@ -746,6 +721,18 @@ declare function compileToViewTransition<V extends Vars>(spec: Record<string, VT
746
721
  */
747
722
  declare type CompositeOperator = "replace" | "add" | "accumulate";
748
723
 
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
+
749
736
  /**
750
737
  * Feature-detect (`"ScrollTimeline" in window` / `"ViewTimeline" in window`)
751
738
  * and construct a NATIVE `AnimationTimeline` for the additive WAAPI scroll
@@ -777,7 +764,7 @@ export declare function createNativeTimeline(spec: NativeTimelineSpec): Animatio
777
764
  * // spec-fed (value.js-independent):
778
765
  * const scene = createScrollScene({ range: { start: { offset: "0%" }, end: { offset: "100%" } } });
779
766
  */
780
- declare function createScrollScene(spec?: ScrollSceneOptions | CSSTimelineOptions): ScrollScene;
767
+ export declare function createScrollScene(spec?: ScrollSceneOptions | CSSTimelineOptions): ScrollScene;
781
768
 
782
769
  /**
783
770
  * Construct a `TriggerScene` from a parsed `AnimationTriggerValue` OR a full
@@ -791,7 +778,7 @@ declare function createScrollScene(spec?: ScrollSceneOptions | CSSTimelineOption
791
778
  * const scene = createTriggerScene(opts);
792
779
  * scene.triggerProgress(0.5); // → "active"
793
780
  */
794
- declare function createTriggerScene(spec?: AnimationTriggerValue | CSSTimelineOptions): TriggerScene;
781
+ export declare function createTriggerScene(spec?: AnimationTriggerValue | CSSTimelineOptions): TriggerScene;
795
782
 
796
783
  export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnimation<V> {
797
784
  /**
@@ -853,7 +840,7 @@ export declare class CSSKeyframesAnimation<V extends Vars> extends KeyframesAnim
853
840
  fromString(keyframes: string, transform?: TransformFunction<V>): this;
854
841
  }
855
842
 
856
- declare function CSSKeyframesToString<V extends Vars>(animation: KeyframesAnimation<V>, name?: string, printWidth?: number | undefined): Promise<string>;
843
+ export declare function CSSKeyframesToString<V extends Vars>(animation: KeyframesAnimation<V>, name?: string, printWidth?: number | undefined): Promise<string>;
857
844
 
858
845
  /**
859
846
  * Per-stop card serializer for the editor pane — ONE formatted keyframe
@@ -865,7 +852,7 @@ declare function CSSKeyframesToString<V extends Vars>(animation: KeyframesAnimat
865
852
  * last card simply did not exist) and read `frame.flatVars` (DOM-resolved,
866
853
  * interp-mutated) — both defects die with the unification.
867
854
  */
868
- declare const CSSKeyframesToStrings: <V extends Vars>(animation: KeyframesAnimation<V>) => Promise<string[]>;
855
+ export declare const CSSKeyframesToStrings: <V extends Vars>(animation: KeyframesAnimation<V>) => Promise<string[]>;
869
856
 
870
857
  export { CSSTimelineOptions }
871
858
 
@@ -936,16 +923,19 @@ export declare interface DecaySample {
936
923
  velocity: number;
937
924
  }
938
925
 
926
+ export declare const defaultLayerConfig: AnimationLayerConfig;
927
+
928
+ export declare const defaultOptions: AnimationOptions;
929
+
939
930
  /**
940
931
  * A structured parse/honoring diagnostic (K.W7 S4). Extends the value.js
941
- * `ParseDiagnostic` producer (the CONSUMED shape — `message`/`offset`/`line`/
932
+ * parser diagnostic shape (the consumed shape — `message`/`offset`/`line`/
942
933
  * `column`/`expected`/`input`) with a stable kf-side {@link DiagnosticCode} and
943
934
  * an optional `property` (the leaf a `COMPOSITION_FALLBACK` names). The
944
935
  * value.js half (`message`/`offset`/…) is `Partial` because the engine-internal
945
936
  * rows (EMPTY_PARSE, COMPOSITION_FALLBACK) are NOT byte-offset parse failures —
946
- * they carry a `message` + `code` only; a row sourced from the value.js
947
- * `OnParseError` producer carries the full positional record. NOT a kf-local
948
- * re-author of the producer: it CONSUMES `ParseDiagnostic`'s field shape and
937
+ * they carry a `message` + `code` only. Positional fields are retained for
938
+ * ingest callers that attach source locations.
949
939
  * widens it with the stable code (inv-16 published-only consumption holds).
950
940
  */
951
941
  declare interface Diagnostic extends Partial<ParseDiagnostic> {
@@ -964,14 +954,13 @@ declare interface Diagnostic extends Partial<ParseDiagnostic> {
964
954
  * lifted onto the structured field). The engine-internal rows
965
955
  * (`EMPTY_PARSE`/`UNKNOWN_TIMING_FN`) were J.W1-landed as typed throws; W7 lifts
966
956
  * them onto this field. `COMPOSITION_FALLBACK` is the K.W7 honesty row (the
967
- * non-numeric composite leaf's refusal). `PARSE_ERROR` carries the value.js
968
- * `OnParseError` producer's structured diagnostic verbatim. The CORS-skip /
957
+ * non-numeric composite leaf's refusal). The CORS-skip /
969
958
  * WAAPI-reason rows are AUTHORED here but POPULATED by K.W8 (which owns the
970
959
  * CSSOM walk that produces them).
971
960
  */
972
961
  declare type DiagnosticCode = "EMPTY_PARSE" | "UNKNOWN_TIMING_FN" | "COMPOSITION_FALLBACK" | "PARSE_ERROR" | "CORS_SKIP" | "WAAPI_INELIGIBLE" | "ADOPT_REFUSE" | "PROPERTY_REGISTER_REJECTED" | "CUSTOM_FN_ARG_DROP";
973
962
 
974
- declare const DIRECTIONS: readonly ["normal", "reverse", "alternate", "alternate-reverse"];
963
+ export declare const DIRECTIONS: readonly ["normal", "reverse", "alternate", "alternate-reverse"];
975
964
 
976
965
  /**
977
966
  * SO-1/SO-2 the DISPATCH (conservative-correct, with a queryable reason). The
@@ -988,7 +977,7 @@ declare const DIRECTIONS: readonly ["normal", "reverse", "alternate", "alternate
988
977
  * an ineligible animation — the reason string is the honesty surface (the
989
978
  * `waapiIneligibleReason` idiom). This ADDS a tier; it deletes no driver.
990
979
  */
991
- declare function dispatchScrollBackend<V extends Vars>(request: ScrollDispatchRequest<V>): ScrollDispatch;
980
+ export declare function dispatchScrollBackend<V extends Vars>(request: ScrollDispatchRequest<V>): ScrollDispatch;
992
981
 
993
982
  /**
994
983
  * Functional sugar over {@link Draggable}: construct, `attach(element)`,
@@ -1255,7 +1244,7 @@ export declare type DragSubscriber = (value: number, velocity: number) => void;
1255
1244
  * is the factory: `new DrawSVG(target).animation` is the control handle. The
1256
1245
  * factory is the canonical entry; this is a thin ergonomic wrapper.
1257
1246
  */
1258
- declare class DrawSVG<V extends Vars = Vars> extends SVGAnimationHandle<V> {
1247
+ export declare class DrawSVG<V extends Vars = Vars> extends SVGAnimationHandle<V> {
1259
1248
  constructor(target: SVGDrawTarget, options?: DrawSVGOptions);
1260
1249
  }
1261
1250
 
@@ -1278,6 +1267,14 @@ export declare interface DrawSVGOptions extends Partial<InputAnimationOptions> {
1278
1267
  autoPlay?: boolean;
1279
1268
  }
1280
1269
 
1270
+ /**
1271
+ * Compose the parsed scroll CSS into its range scene, optional trigger scene,
1272
+ * and conservative native/JS backend decision. No declaration is reparsed:
1273
+ * the exact `CSSTimelineOptions` returned by `parseScrollCSS` is fanned out to
1274
+ * every lane, preserving parse→drive symmetry.
1275
+ */
1276
+ export declare function driveScrollCSS<V extends Vars = Vars>(options: CSSTimelineOptions, target?: ScrollDriveTarget<V>, driverOptions?: ScrollDriveOptions<V>): ScrollCSSDrive<V>;
1277
+
1281
1278
  /**
1282
1279
  * The typed easing value — a callable curve plus, when one exists, the CSS
1283
1280
  * easing string that reproduces it (e.g. a spring's `linear()` stops).
@@ -1341,18 +1338,7 @@ export declare interface ElementMorphOptions {
1341
1338
  transformOrigin?: string;
1342
1339
  }
1343
1340
 
1344
- /** Entrance animations — bring an element INTO view. */
1345
- declare const enterPresets: {
1346
- readonly fadeIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1347
- readonly slideIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1348
- readonly slideInLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1349
- readonly slideInRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1350
- readonly rotateIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1351
- readonly blurIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1352
- readonly springScaleIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1353
- readonly springSlideIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1354
- readonly jumpUp: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1355
- };
1341
+ declare const enterPresets: Readonly<Record<string, PresetFactory>>;
1356
1342
 
1357
1343
  /** Options for {@link compileToEntry}. */
1358
1344
  export declare interface EntryCompileOptions {
@@ -1389,16 +1375,7 @@ export declare interface EntryRoleSpec<V extends Vars = Vars> {
1389
1375
  exit?: KeyframesAnimation<V>;
1390
1376
  }
1391
1377
 
1392
- /** Exit animations — take an element OUT of view. */
1393
- declare const exitPresets: {
1394
- readonly fadeOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1395
- readonly slideOutLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1396
- readonly slideOutRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1397
- readonly blurOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1398
- readonly warpLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1399
- readonly warpRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1400
- readonly jumpDown: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1401
- };
1378
+ declare const exitPresets: Readonly<Record<string, PresetFactory>>;
1402
1379
 
1403
1380
  /**
1404
1381
  * `explain(css, opts?)` — the human/LLM-readable companion. Calls
@@ -1420,13 +1397,13 @@ declare const exitPresets: {
1420
1397
  * diagnostics:
1421
1398
  * – COMPOSITION_FALLBACK: …
1422
1399
  */
1423
- declare function explain(css: string, opts?: ValidateOptions): Promise<string>;
1400
+ export declare function explain(css: string, opts?: ValidateOptions): Promise<string>;
1424
1401
 
1425
- declare const fadeIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1402
+ declare const fadeIn: PresetFactory;
1426
1403
 
1427
- declare const fadeOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1404
+ declare const fadeOut: PresetFactory;
1428
1405
 
1429
- declare const FILL_MODES: readonly ["none", "forwards", "backwards", "both"];
1406
+ export declare const FILL_MODES: readonly ["none", "forwards", "backwards", "both"];
1430
1407
 
1431
1408
  /**
1432
1409
  * Animate a layout change on `element`: measure (First), run `mutate` (Last),
@@ -1451,7 +1428,7 @@ export declare interface FlipOptions {
1451
1428
  transformOrigin?: string;
1452
1429
  }
1453
1430
 
1454
- declare const flipPreset: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1431
+ declare const flipPreset: PresetFactory;
1455
1432
 
1456
1433
  /**
1457
1434
  * Shared-element FLIP: animate element `a` onto the rect of element `b`
@@ -1469,7 +1446,7 @@ declare const flipPreset: (options?: InputAnimationOptions) => CSSKeyframesAnima
1469
1446
  */
1470
1447
  export declare function flipShared(a: HTMLElement, b: HTMLElement, options?: FlipOptions): Promise<void>;
1471
1448
 
1472
- declare function formatCSSKeyframeString(keyframe: string): string;
1449
+ export declare function formatCSSKeyframeString(keyframe: string): string;
1473
1450
 
1474
1451
  declare class FrameCompiler<V extends Vars = Vars> {
1475
1452
  private readonly _options;
@@ -1576,7 +1553,7 @@ declare class FrameCompiler<V extends Vars = Vars> {
1576
1553
  * // Draw a path stroke in over 2s:
1577
1554
  * fromDrawSVG(pathEl, { duration: 2000 });
1578
1555
  */
1579
- declare function fromDrawSVG<V extends Vars = Vars>(target: SVGDrawTarget, options?: DrawSVGOptions): CSSKeyframesAnimation<V>;
1556
+ export declare function fromDrawSVG<V extends Vars = Vars>(target: SVGDrawTarget, options?: DrawSVGOptions): CSSKeyframesAnimation<V>;
1580
1557
 
1581
1558
  /**
1582
1559
  * K1 — `fromLiveAnimations`: adopt every RUNNING CSS animation on the document
@@ -1591,7 +1568,7 @@ declare function fromDrawSVG<V extends Vars = Vars>(target: SVGDrawTarget, optio
1591
1568
  * rule, running or not): `fromLiveAnimations` narrows to the names currently
1592
1569
  * RUNNING on the page — the animations a user actually sees in motion.
1593
1570
  */
1594
- declare const fromLiveAnimations: <V extends Vars = Vars>(target?: Document | Element, options?: IngestOptions) => IngestResult<V>;
1571
+ export declare const fromLiveAnimations: <V extends Vars = Vars>(target?: Document | Element, options?: IngestOptions) => IngestResult<V>;
1595
1572
 
1596
1573
  /**
1597
1574
  * Build an SVG path-shape morph: sample two `d` strings at `samples` uniform
@@ -1628,7 +1605,7 @@ declare const fromLiveAnimations: <V extends Vars = Vars>(target?: Document | El
1628
1605
  * // morphing shape paints directly (no author-side reader needed on Chromium/
1629
1606
  * // Safari; `<path style="d: var(--morph-d)">` is the Firefox-lags fallback).
1630
1607
  */
1631
- declare function fromMorphSVG<V extends Vars = Vars>(from: string, to: string, options?: MorphSVGOptions): CSSKeyframesAnimation<V>;
1608
+ export declare function fromMorphSVG<V extends Vars = Vars>(from: string, to: string, options?: MorphSVGOptions): CSSKeyframesAnimation<V>;
1632
1609
 
1633
1610
  /**
1634
1611
  * Build a CSS-native path-motion animation: set the author `offset-path` (and
@@ -1652,7 +1629,7 @@ declare function fromMorphSVG<V extends Vars = Vars>(from: string, to: string, o
1652
1629
  * duration: 2000,
1653
1630
  * });
1654
1631
  */
1655
- declare function fromMotionPath<V extends Vars = Vars>(target: HTMLElement | HTMLElement[], options: MotionPathOptions): CSSKeyframesAnimation<V>;
1632
+ export declare function fromMotionPath<V extends Vars = Vars>(target: HTMLElement | HTMLElement[], options: MotionPathOptions): CSSKeyframesAnimation<V>;
1656
1633
 
1657
1634
  /**
1658
1635
  * K1 — `fromStyleSheets`: the consumer-facing front door over
@@ -1667,15 +1644,40 @@ declare function fromMotionPath<V extends Vars = Vars>(target: HTMLElement | HTM
1667
1644
  * pulse?.setTargets(el).play(); // re-drive the page's OWN animation
1668
1645
  * for (const d of diagnostics) console.warn(d.code, d.message); // honest skips
1669
1646
  */
1670
- declare const fromStyleSheets: <V extends Vars = Vars>(source?: Document | ShadowRoot | CSSStyleSheet[] | CSSStyleSheet, options?: IngestOptions) => IngestResult<V>;
1647
+ export declare const fromStyleSheets: <V extends Vars = Vars>(source?: Document | ShadowRoot | CSSStyleSheet[] | CSSStyleSheet, options?: IngestOptions) => IngestResult<V>;
1671
1648
 
1672
- declare const glow: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1649
+ /**
1650
+ * Resolve a stable name for an animation reference: the explicit `name` when
1651
+ * set, else the numeric `id` stringified. A bare string passes through (the ONE
1652
+ * place a name-or-animation reference collapses to a name).
1653
+ */
1654
+ export declare const getAnimationId: (animation: AnimationIdentity | string) => string;
1673
1655
 
1674
- declare const gradientBackground: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
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
+ declare const glow: PresetFactory;
1675
1675
 
1676
- declare const heartbeat: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1676
+ declare const gradientBackground: PresetFactory;
1677
1677
 
1678
- declare const hover: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1678
+ declare const heartbeat: PresetFactory;
1679
+
1680
+ declare const hover: PresetFactory;
1679
1681
 
1680
1682
  /**
1681
1683
  * One ingested animation + the diagnostics its reconstruction produced. The
@@ -1749,9 +1751,9 @@ export declare type InputAnimationOptions = Partial<{
1749
1751
 
1750
1752
  export { InterpolatedVar }
1751
1753
 
1752
- declare const jumpDown: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1754
+ declare const jumpDown: PresetFactory;
1753
1755
 
1754
- declare const jumpUp: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
1756
+ declare const jumpUp: PresetFactory;
1755
1757
 
1756
1758
  /**
1757
1759
  * The core animation engine — keyframes, timing, interpolation, playback.
@@ -1810,6 +1812,8 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
1810
1812
  * per-element numeric base `add`/`accumulate` accumulates ONTO; empty for a
1811
1813
  * pure-`replace` animation. INTERNAL — read by `./interpolate` (R.W2). */
1812
1814
  _compositionBase: Map<string, number[]>;
1815
+ /** Parsed underlying CSS pose, cached once per property for a capture run. */
1816
+ _compositionPose: Map<string, number[]>;
1813
1817
  /** Properties whose non-numeric composite already emitted its
1814
1818
  * `COMPOSITION_FALLBACK` row (once per property, not per frame). INTERNAL —
1815
1819
  * read by `./interpolate` (R.W2). */
@@ -1923,7 +1927,7 @@ export declare class KeyframesAnimation<V extends Vars = Vars> {
1923
1927
  pause(): this;
1924
1928
  resume(): this;
1925
1929
  /** The explicit flip: pauses if playing, resumes if paused. */
1926
- toggle(): this;
1930
+ toggle(): void;
1927
1931
  stop(): void;
1928
1932
  playing(): boolean;
1929
1933
  get effectiveT(): number;
@@ -1971,20 +1975,25 @@ export declare interface KeyframesScrollTimelineOptions extends TimelineOptions
1971
1975
  */
1972
1976
  declare type LayerTransitionSpring = Partial<Omit<SpringProgressOptions, "initial" | "initialVelocity">>;
1973
1977
 
1978
+ /**
1979
+ * Resolve the heavy CSS-keyframe engine and its companion front doors.
1980
+ *
1981
+ * This is intentionally the same module used by the `./engine` package
1982
+ * subpath. Module evaluation and the promise are both memoized, so warming
1983
+ * and an eventual consumer share one in-flight load.
1984
+ */
1974
1985
  export declare const loadAnimationEngine: () => Promise<AnimationEngine>;
1975
1986
 
1976
- /** Looping animations — run continuously (`iterationCount: Infinity`). */
1977
- declare const loopPresets: {
1978
- readonly heartbeat: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1979
- readonly glow: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1980
- readonly spinner: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1981
- readonly rainbowText: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1982
- readonly skeletonLoading: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1983
- readonly gradientBackground: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1984
- readonly parallaxScroll: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1985
- readonly hover: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1986
- readonly typingCursor: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
1987
- };
1987
+ declare const loopPresets: Readonly<Record<string, PresetFactory>>;
1988
+
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
+ }
1988
1997
 
1989
1998
  export declare class ManualTimeline extends Timeline {
1990
1999
  private value;
@@ -2022,7 +2031,7 @@ export declare interface MorphRect {
2022
2031
  * that ALSO exposes {@link sampleD} — the morphed `d` string at a normalized
2023
2032
  * `t`, reassembled from the interpolated point coordinates.
2024
2033
  */
2025
- declare class MorphSVG<V extends Vars = Vars> extends SVGAnimationHandle<V> {
2034
+ export declare class MorphSVG<V extends Vars = Vars> extends SVGAnimationHandle<V> {
2026
2035
  /** The uniform-sample count (point pairs = samples + 1). */
2027
2036
  readonly samples: number;
2028
2037
  constructor(from: string, to: string, options?: MorphSVGOptions);
@@ -2100,7 +2109,7 @@ declare interface MorphValues {
2100
2109
  * the factory: `new MotionPath(target, { path }).animation` is the control
2101
2110
  * handle. The factory is the canonical entry; this is a thin ergonomic wrapper.
2102
2111
  */
2103
- declare class MotionPath<V extends Vars = Vars> extends SVGAnimationHandle<V> {
2112
+ export declare class MotionPath<V extends Vars = Vars> extends SVGAnimationHandle<V> {
2104
2113
  constructor(target: HTMLElement | HTMLElement[], options: MotionPathOptions);
2105
2114
  }
2106
2115
 
@@ -2158,7 +2167,7 @@ export declare type NativeTimelineSpec = {
2158
2167
  inset?: string;
2159
2168
  };
2160
2169
 
2161
- declare const notificationBounce: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2170
+ declare const notificationBounce: PresetFactory;
2162
2171
 
2163
2172
  /**
2164
2173
  * Zero-allocation numeric keyframe interpolator.
@@ -2173,6 +2182,8 @@ declare const notificationBounce: (options?: InputAnimationOptions) => CSSKeyfra
2173
2182
  * that resolves when the animation completes
2174
2183
  */
2175
2184
  export declare class NumericAnimation<T extends Record<string, number>> {
2185
+ /** Per-instance interpolation scratch: reentrant sibling `.at()` calls cannot clobber it. */
2186
+ private _out;
2176
2187
  private keyframes;
2177
2188
  private segments;
2178
2189
  private positions;
@@ -2374,7 +2385,7 @@ export declare interface OscillatorConfig {
2374
2385
  /** The four canonical periodic waveforms the phase clock shapes a phase into. */
2375
2386
  export declare type OscillatorWaveform = "sine" | "triangle" | "square" | "sawtooth";
2376
2387
 
2377
- declare const parallaxScroll: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2388
+ declare const parallaxScroll: PresetFactory;
2378
2389
 
2379
2390
  declare type ParsedVarMap = Record<string, ValueArray>;
2380
2391
 
@@ -2397,13 +2408,13 @@ declare type ParsedVarMap = Record<string, ValueArray>;
2397
2408
  * // range: { start: { phase: "entry", offset: "0%" },
2398
2409
  * // end: { phase: "cover", offset: "40%" } } }
2399
2410
  */
2400
- declare function parseScrollCSS(input: string | Stylesheet): CSSTimelineOptions;
2411
+ export declare function parseScrollCSS(input: string | Stylesheet): CSSTimelineOptions;
2401
2412
 
2402
2413
  /**
2403
2414
  * Parse an `animation-range` shorthand (`entry 0% cover 40%`) to its typed
2404
2415
  * `{ start, end? }` form — a pass-through to value.js's `parseAnimationRange`.
2405
2416
  */
2406
- declare function parseScrollRange(input: string): AnimationRangeValue;
2417
+ export declare function parseScrollRange(input: string): AnimationRangeValue;
2407
2418
 
2408
2419
  /**
2409
2420
  * Parse a single `animation-timeline` value (`scroll(root block)`, `view()`,
@@ -2411,7 +2422,7 @@ declare function parseScrollRange(input: string): AnimationRangeValue;
2411
2422
  * value.js's `parseAnimationTimeline` (kf consumes the VALUE grammar; it never
2412
2423
  * re-derives a local parser). Emits the value VERBATIM; resolves no defaults.
2413
2424
  */
2414
- declare function parseScrollTimeline(input: string): AnimationTimelineValue;
2425
+ export declare function parseScrollTimeline(input: string): AnimationTimelineValue;
2415
2426
 
2416
2427
  /**
2417
2428
  * SO-3 the `position:sticky` pin SYNTHESIS — EMIT the pin CSS (kf authors the
@@ -2424,7 +2435,7 @@ declare function parseScrollTimeline(input: string): AnimationTimelineValue;
2424
2435
  * pinCSS() // → "position: sticky; top: 0px;"
2425
2436
  * pinCSS({ top: 24 }) // → "position: sticky; top: 24px;"
2426
2437
  */
2427
- declare function pinCSS(opts?: {
2438
+ export declare function pinCSS(opts?: {
2428
2439
  top?: number;
2429
2440
  bottom?: number;
2430
2441
  }): string;
@@ -2502,52 +2513,61 @@ declare class PlaybackState {
2502
2513
  constructor(frameCb: (t: number) => boolean | Promise<boolean>);
2503
2514
  }
2504
2515
 
2505
- /**
2506
- * The full preset taxonomy, grouped by intent. Each leaf is one of the
2507
- * existing exported factory functions — the taxonomy is a discovery index over
2508
- * the library, not a second copy of it.
2509
- */
2516
+ declare type PresetFactory = (options?: InputAnimationOptions) => CSSKeyframesAnimation<any>;
2517
+
2518
+ export declare namespace presets {
2519
+ export {
2520
+ fadeIn,
2521
+ fadeOut,
2522
+ pulse,
2523
+ shake,
2524
+ bounce,
2525
+ flipPreset,
2526
+ rotateIn,
2527
+ slideIn,
2528
+ heartbeat,
2529
+ glow,
2530
+ typewriter,
2531
+ rainbowText,
2532
+ warpLeft,
2533
+ warpRight,
2534
+ blurIn,
2535
+ blurOut,
2536
+ blurInOut,
2537
+ progressBar,
2538
+ skeletonLoading,
2539
+ textFocusBlur,
2540
+ gradientBackground,
2541
+ rotateScale,
2542
+ typingCursor,
2543
+ accordionExpand,
2544
+ notificationBounce,
2545
+ spinner,
2546
+ parallaxScroll,
2547
+ slideInLeft,
2548
+ slideOutLeft,
2549
+ slideInRight,
2550
+ slideOutRight,
2551
+ hover,
2552
+ jumpUp,
2553
+ jumpDown,
2554
+ springScaleIn,
2555
+ springSlideIn,
2556
+ springPop,
2557
+ springWobble,
2558
+ enterPresets,
2559
+ exitPresets,
2560
+ attentionPresets,
2561
+ loopPresets,
2562
+ presetTaxonomy
2563
+ }
2564
+ }
2565
+
2510
2566
  declare const presetTaxonomy: {
2511
- readonly enter: {
2512
- readonly fadeIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2513
- readonly slideIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2514
- readonly slideInLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2515
- readonly slideInRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2516
- readonly rotateIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2517
- readonly blurIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2518
- readonly springScaleIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2519
- readonly springSlideIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2520
- readonly jumpUp: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2521
- };
2522
- readonly exit: {
2523
- readonly fadeOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2524
- readonly slideOutLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2525
- readonly slideOutRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2526
- readonly blurOut: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2527
- readonly warpLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2528
- readonly warpRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2529
- readonly jumpDown: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2530
- };
2531
- readonly attention: {
2532
- readonly pulse: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2533
- readonly shake: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2534
- readonly bounce: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2535
- readonly flip: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2536
- readonly notificationBounce: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2537
- readonly springPop: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2538
- readonly springWobble: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2539
- };
2540
- readonly loop: {
2541
- readonly heartbeat: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2542
- readonly glow: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2543
- readonly spinner: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2544
- readonly rainbowText: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2545
- readonly skeletonLoading: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2546
- readonly gradientBackground: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2547
- readonly parallaxScroll: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2548
- readonly hover: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2549
- readonly typingCursor: (options?: InputAnimationOptions) => CSSKeyframesAnimation<Vars>;
2550
- };
2567
+ readonly enter: Readonly<Record<string, PresetFactory>>;
2568
+ readonly exit: Readonly<Record<string, PresetFactory>>;
2569
+ readonly attention: Readonly<Record<string, PresetFactory>>;
2570
+ readonly loop: Readonly<Record<string, PresetFactory>>;
2551
2571
  };
2552
2572
 
2553
2573
  /**
@@ -2559,9 +2579,9 @@ declare const presetTaxonomy: {
2559
2579
  */
2560
2580
  export declare function probeVelocity(probe: VelocityProbe): number;
2561
2581
 
2562
- declare const progressBar: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2582
+ declare const progressBar: PresetFactory;
2563
2583
 
2564
- declare const pulse: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2584
+ declare const pulse: PresetFactory;
2565
2585
 
2566
2586
  /**
2567
2587
  * THE managed rAF driver. Owns the rAF handle, start timestamp, dt clock,
@@ -2681,7 +2701,7 @@ export declare interface RAFPlaybackOptions {
2681
2701
  respectReducedMotion?: boolean | undefined;
2682
2702
  }
2683
2703
 
2684
- declare const rainbowText: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2704
+ declare const rainbowText: PresetFactory;
2685
2705
 
2686
2706
  export { RangeBoundary }
2687
2707
 
@@ -2833,7 +2853,7 @@ export declare interface ResolvedRange {
2833
2853
  * `"ease-out-cubic"`, … — or a CSS `cubic-bezier()` literal) to a typed
2834
2854
  * {@link Easing}.
2835
2855
  *
2836
- * The lookup rides the dynamic boundary: `import("./compile/easing-registry")`
2856
+ * The lookup rides the dynamic boundary: `import("./compile/easing/easing-registry")`
2837
2857
  * loads ONLY the value.js-bearing timing-function registry (R.W1 narrow — not the
2838
2858
  * full engine chunk; lib-support F7) when a named easing is actually used, so a
2839
2859
  * light-only consumer that never calls this stays value.js-free.
@@ -2849,6 +2869,54 @@ export declare interface ResolvedRange {
2849
2869
  */
2850
2870
  export declare function resolveEasing(name: string): Promise<Easing>;
2851
2871
 
2872
+ /**
2873
+ * The injectable environment a Phase-1 resolution evaluates against. Every field
2874
+ * is OPTIONAL with an SSR-safe default ({@link defaultResolveEnv}); a test injects
2875
+ * a deterministic `supports`/`matchMedia` (jsdom carries neither faithfully) the
2876
+ * way `ScrollTimeline` is handed a `getScrollY`. The Phase-2 element-aware fields
2877
+ * (`customProps`/`siblingIndex`/`siblingCount`) are typed here so the second-pass
2878
+ * call site (post-`setTargets`) threads the SAME context shape — ONE rewriter,
2879
+ * two lifecycle points, not two divergent context types.
2880
+ */
2881
+ declare interface ResolveEnv {
2882
+ /** `CSS.supports(query)` — the `if(supports(...))` evaluator. SSR → `false`. */
2883
+ supports?: (query: string) => boolean;
2884
+ /** `matchMedia(query)` — the `if(media(...))` evaluator. SSR → `{matches:false}`. */
2885
+ matchMedia?: (query: string) => {
2886
+ matches: boolean;
2887
+ };
2888
+ /** Phase 2 — resolved custom-prop reader for `if(style(--p))` (element-aware). */
2889
+ customProps?: (name: string) => string | undefined;
2890
+ /** Phase 2 — 1-based DOM position for `sibling-index()` (element-aware). */
2891
+ siblingIndex?: () => number;
2892
+ /** Phase 2 — sibling total for `sibling-count()` (element-aware). */
2893
+ siblingCount?: () => number;
2894
+ }
2895
+
2896
+ /**
2897
+ * Normalise a CSS string (or pre-parsed Stylesheet) into the shape
2898
+ * `CSSKeyframesAnimation.fromString` consumes. The single entry
2899
+ * point: replaces the legacy `parseCSSKeyframes` /
2900
+ * `parseCSSStyleBlock` / `parseCSSAnimationKeyframes` fork.
2901
+ *
2902
+ * Bare keyframe-stop lists (`from { … } to { … }`) historically work even
2903
+ * though they are not valid top-level CSS. F.W8 decides that on the parsed
2904
+ * AST, not a regex sniff: parse the raw input; if it surfaced ZERO @keyframes
2905
+ * rules and the input is non-empty, re-wrap as `@keyframes anonymous { … }`
2906
+ * and re-parse. A leading `/* @keyframes … *​/` comment no longer defeats the
2907
+ * detection (the PX-1 comment-defeat bug — the regex `/@keyframes\b/` matched
2908
+ * inside a comment and skipped the wrap, yielding a silent empty parse).
2909
+ *
2910
+ * K.W8 SIBLING — `resolveLiveKeyframes` (`./ingest`) is the LIVE-CSSOM analogue
2911
+ * of this STRING normaliser: where `resolveKeyframes` normalises a string of
2912
+ * CSS, `resolveLiveKeyframes` walks `document.styleSheets`, serialises each
2913
+ * `CSSKeyframesRule` via `rule.cssText`, and feeds THAT text into THIS function
2914
+ * — the parser pointed FORWARD at the web the page already ships. It lives in a
2915
+ * separate module (`./ingest`) to avoid an `engine → adapter → ingest → engine`
2916
+ * import cycle; reach it via `loadAnimationEngine()` (the `index.ts` HEAVY edge).
2917
+ */
2918
+ export declare const resolveKeyframes: (input: string | Stylesheet, env?: ResolveEnv) => ResolvedKeyframes;
2919
+
2852
2920
  /**
2853
2921
  * K1 — `resolveLiveKeyframes`: the lowest-level CSSOM walk. Accepts a
2854
2922
  * `Document`, an explicit `CSSStyleSheet[]`, or a single `CSSStyleSheet`, and
@@ -2861,7 +2929,7 @@ export declare function resolveEasing(name: string): Promise<Easing>;
2861
2929
  * normalises a STRING of CSS, `resolveLiveKeyframes` normalises the LIVE CSSOM —
2862
2930
  * the parser pointed forward at the web the page already ships.
2863
2931
  */
2864
- declare const resolveLiveKeyframes: <V extends Vars = Vars>(source?: Document | ShadowRoot | CSSStyleSheet[] | CSSStyleSheet, options?: IngestOptions) => IngestResult<V>;
2932
+ export declare const resolveLiveKeyframes: <V extends Vars = Vars>(source?: Document | ShadowRoot | CSSStyleSheet[] | CSSStyleSheet, options?: IngestOptions) => IngestResult<V>;
2865
2933
 
2866
2934
  /**
2867
2935
  * Resolve a parsed `AnimationRangeValue` (or `undefined` → the whole [0,1]
@@ -2869,11 +2937,11 @@ declare const resolveLiveKeyframes: <V extends Vars = Vars>(source?: Document |
2869
2937
  * division-of-labour law: value.js emits the phases/offsets verbatim, kf turns
2870
2938
  * them into the TIME mapping.
2871
2939
  */
2872
- declare function resolveRange(range: AnimationRangeValue | undefined): ResolvedRange;
2940
+ export declare function resolveRange(range: AnimationRangeValue | undefined): ResolvedRange;
2873
2941
 
2874
- declare const rotateIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2942
+ declare const rotateIn: PresetFactory;
2875
2943
 
2876
- declare const rotateScale: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
2944
+ declare const rotateScale: PresetFactory;
2877
2945
 
2878
2946
  /**
2879
2947
  * The full SO-1 round-trip in one call: `parse → serialize`. Returns the typed
@@ -2881,14 +2949,22 @@ declare const rotateScale: (options?: InputAnimationOptions) => CSSKeyframesAnim
2881
2949
  * `proof:scroll-roundtrip` gate) can assert the replay-equality invariant
2882
2950
  * (`serialize(parse(s))` canonical-form-equal to `s`).
2883
2951
  */
2884
- declare function roundTripScrollCSS(input: string | Stylesheet): {
2952
+ export declare function roundTripScrollCSS(input: string | Stylesheet): {
2885
2953
  options: CSSTimelineOptions;
2886
2954
  declarations: ReturnType<typeof serializeScrollOptions>;
2887
2955
  };
2888
2956
 
2889
- /** Which backend a `ScrollScene` dispatched to, and why the JS path was chosen. */
2957
+ /** The backend selected for a scroll-driven animation. */
2890
2958
  export declare type ScrollBackend = "native" | "js";
2891
2959
 
2960
+ /** The single handle returned by `driveScrollCSS`. */
2961
+ export declare interface ScrollCSSDrive<V extends Vars = Vars> {
2962
+ readonly scene: ScrollScene;
2963
+ readonly trigger?: TriggerScene;
2964
+ readonly backend: ScrollBackend;
2965
+ readonly reason?: string;
2966
+ }
2967
+
2892
2968
  /** The dispatch verdict — which backend, and (for JS) the human-readable reason. */
2893
2969
  export declare type ScrollDispatch = {
2894
2970
  backend: "native";
@@ -2916,6 +2992,27 @@ export declare interface ScrollDispatchRequest<V extends Vars> {
2916
2992
  velocity?: boolean | undefined;
2917
2993
  }
2918
2994
 
2995
+ /** Options for the composed `driveScrollCSS` entry. */
2996
+ export declare interface ScrollDriveOptions<V extends Vars = Vars> extends Omit<ScrollSceneOptions, "range"> {
2997
+ /** Explicit native timeline mapping; otherwise it is derived from CSS. */
2998
+ nativeSpec?: NativeTimelineSpec;
2999
+ /** Animation to offer to the native eligibility/attachment lane. */
3000
+ animation?: KeyframesAnimation<V>;
3001
+ /** Force the JS backend for a velocity/non-DOM driver. */
3002
+ velocity?: boolean;
3003
+ /** Native scroll source when the parsed timeline is `scroll()`. */
3004
+ source?: Element | null;
3005
+ /** Native view subject when the parsed timeline is `view()`. */
3006
+ subject?: Element;
3007
+ /** Native timeline axis override (CSS's parsed axis remains the default). */
3008
+ axis?: ScrollTimelineAxis;
3009
+ /** Native view inset override. */
3010
+ inset?: string;
3011
+ }
3012
+
3013
+ /** A positional target may be an animation (for WAAPI) or a view subject. */
3014
+ export declare type ScrollDriveTarget<V extends Vars = Vars> = KeyframesAnimation<V> | Element | null | undefined;
3015
+
2919
3016
  /**
2920
3017
  * The kf `ScrollScene` JS DRIVER (SO-2). Drives an engine's progress from a raw
2921
3018
  * scroll position through the parsed `animation-range`, composing the SHIPPED
@@ -3075,6 +3172,7 @@ export declare class Sequence<V extends Vars = Vars> implements SequencePlayCont
3075
3172
  _resolvePlay: (() => void) | null;
3076
3173
  _playOrigin: number | undefined;
3077
3174
  /* Excluded from this release type: _playingPromise */
3175
+ private _duration;
3078
3176
  /**
3079
3177
  * The scalar playback rate — the single field that drives `timeScale`
3080
3178
  * and `reverse`. `_rate = 1` is real-time forward (the existing
@@ -3356,26 +3454,26 @@ export declare type SequenceSubscriber = SequenceSegmentSubscriber | SequenceLab
3356
3454
  * a REFUSAL (a parse that drops a phase reds the gate), never a silent
3357
3455
  * approximation. See {@link roundTripScrollCSS}.
3358
3456
  */
3359
- declare function serializeScrollOptions(opts: CSSTimelineOptions): {
3457
+ export declare function serializeScrollOptions(opts: CSSTimelineOptions): {
3360
3458
  "animation-timeline"?: string;
3361
3459
  "animation-range"?: string;
3362
3460
  "timeline-scope"?: string;
3363
3461
  "animation-trigger"?: string;
3364
3462
  };
3365
3463
 
3366
- declare const shake: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3464
+ declare const shake: PresetFactory;
3367
3465
 
3368
- declare const skeletonLoading: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3466
+ declare const skeletonLoading: PresetFactory;
3369
3467
 
3370
- declare const slideIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3468
+ declare const slideIn: PresetFactory;
3371
3469
 
3372
- declare const slideInLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3470
+ declare const slideInLeft: PresetFactory;
3373
3471
 
3374
- declare const slideInRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3472
+ declare const slideInRight: PresetFactory;
3375
3473
 
3376
- declare const slideOutLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3474
+ declare const slideOutLeft: PresetFactory;
3377
3475
 
3378
- declare const slideOutRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3476
+ declare const slideOutRight: PresetFactory;
3379
3477
 
3380
3478
  /** Per-frame callback for `.play()` mode. Receives the smoothed current value. */
3381
3479
  declare type SmoothFrameCallback = (value: number) => void;
@@ -3385,8 +3483,10 @@ export declare class SmoothProgress {
3385
3483
  private targetValue;
3386
3484
  private currentValue;
3387
3485
  private isSettled;
3388
- private _playback;
3389
- private _onFrame;
3486
+ readonly _playback: RAFPlayback;
3487
+ _onFrame: SmoothFrameCallback | undefined;
3488
+ get respectReducedMotion(): boolean;
3489
+ _emitManagedFrame(): void;
3390
3490
  constructor(options?: Partial<SmoothProgressOptions>);
3391
3491
  get target(): number;
3392
3492
  get current(): number;
@@ -3493,7 +3593,11 @@ declare interface SoALayerPlan {
3493
3593
  /** The pure-numeric carrier units the fold seeds the composite buffer from + writes back to. */
3494
3594
  carriers: ValueUnit<number>[];
3495
3595
  /** The incoming numeric units folded against each carrier (parallel to `carriers`). */
3496
- incomings: ValueUnit<number>[];
3596
+ incomingSlots: Array<{
3597
+ values: Record<string, unknown>;
3598
+ key: string;
3599
+ index: number;
3600
+ }>;
3497
3601
  /**
3498
3602
  * The keys this layer touches that the SoA fold does NOT cover — a non-array
3499
3603
  * carrier (first-touch of a key, or a scalar that a lower layer left
@@ -3514,7 +3618,7 @@ declare interface SoALayerPlan {
3514
3618
  boxedKeys: Set<string>;
3515
3619
  }
3516
3620
 
3517
- declare const spinner: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3621
+ declare const spinner: PresetFactory;
3518
3622
 
3519
3623
  /** The split granularity. `"word"`/`"grapheme"` are layout-independent; `"line"`
3520
3624
  * is measure-or-refuse (SF-10). */
@@ -3719,11 +3823,7 @@ export declare interface SpringLinearStopsOptions {
3719
3823
  * helpers additionally read its current `(value, velocity)` for the per-frame
3720
3824
  * callback and route the reduced-motion snap through `snap()`.
3721
3825
  */
3722
- declare interface SpringPlayback extends Tickable {
3723
- /** THE managed rAF driver the loop rides. */
3724
- readonly _playback: RAFPlayback;
3725
- /** The bound per-frame callback (`play` sets it; `stop` clears it). */
3726
- _onFrame: SpringFrameCallback | undefined;
3826
+ declare interface SpringPlayback extends ManagedStepper<SpringFrameCallback> {
3727
3827
  /** True once `dispose()` has torn the spring down (a disposed spring never plays). */
3728
3828
  readonly disposed: boolean;
3729
3829
  /** Current position — passed to the per-frame callback. */
@@ -3736,8 +3836,7 @@ declare interface SpringPlayback extends Tickable {
3736
3836
  snap(): void;
3737
3837
  }
3738
3838
 
3739
- /** Spring-eased attention "pop" — the bouncy spring drives the scale pulse. */
3740
- declare const springPop: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
3839
+ declare const springPop: PresetFactory;
3741
3840
 
3742
3841
  /**
3743
3842
  * Live-target spring tracker. Sibling of `SmoothProgress` for animations
@@ -3792,6 +3891,7 @@ export declare class SpringProgress implements SpringPlayback {
3792
3891
  private vectorLanes;
3793
3892
  readonly _playback: RAFPlayback;
3794
3893
  /* Excluded from this release type: _onFrame */
3894
+ /* Excluded from this release type: _emitManagedFrame */
3795
3895
  constructor(options?: Partial<SpringProgressOptions>);
3796
3896
  /**
3797
3897
  * Construct a spring from the modern time-based surface
@@ -3852,28 +3952,6 @@ export declare class SpringProgress implements SpringPlayback {
3852
3952
  snap(): void;
3853
3953
  /** Reset position + velocity to a specified value (default 0). */
3854
3954
  reset(value?: number, velocity?: number): void;
3855
- /**
3856
- * Re-seat a MULTI-CHANNEL spring vector onto `targets` (one lane per
3857
- * element), under this spring's `(response, dampingFraction)`. The lanes
3858
- * ring identically to a scalar `SpringProgress` of the same config — the
3859
- * solver is the SAME closed form (`evaluateAt`) shared across channels — but
3860
- * step in ONE `tickVector(dt)` call into one `Float64Array` per tick, the
3861
- * dispatch/alloc amortization the W122 probe measured at 2.97–3.78× over K
3862
- * independent scalar instances (ADOPT @ K=8, `proof:spring-vector`).
3863
- *
3864
- * First call ARMS the lanes (lazily — a scalar-only spring never allocates
3865
- * the vector buffers, so the scalar hot path is unchanged). Subsequent calls
3866
- * re-seat each lane's origin from the lane's CURRENT `(x, v)`, so a mid-flight
3867
- * target change is continuous per channel — the vector analogue of the scalar
3868
- * `set target` re-seat. The lane count is fixed by the FIRST `setTargets`
3869
- * length; a later call with a different length throws (the buffers are
3870
- * stable references the consumer reads via {@link values}).
3871
- *
3872
- * `initialVelocity` (the scalar seed) does NOT carry into the lanes — a fresh
3873
- * vector starts each lane at rest unless re-seated from prior motion. The
3874
- * scalar `currentValue` / `target` are untouched; the two modes are
3875
- * independent surfaces on one solver.
3876
- */
3877
3955
  setTargets(targets: Float64Array): void;
3878
3956
  /**
3879
3957
  * The shared output lane buffer — the K channels' current values, written
@@ -3976,14 +4054,9 @@ export declare interface SpringProgressOptions {
3976
4054
  respectReducedMotion: ReducedMotionPolicy;
3977
4055
  }
3978
4056
 
3979
- /**
3980
- * Spring-eased scale-in entrance — the canonical iOS "pop" with overshoot.
3981
- * Uses the bouncy spring (ζ 0.5) so the element settles past 1 before resting.
3982
- */
3983
- declare const springScaleIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4057
+ declare const springScaleIn: PresetFactory;
3984
4058
 
3985
- /** Spring-eased slide-up entrance — the snappy spring (ζ 0.78). */
3986
- declare const springSlideIn: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4059
+ declare const springSlideIn: PresetFactory;
3987
4060
 
3988
4061
  /** Subscriber callback. Receives current position + velocity each emission. */
3989
4062
  export declare type SpringSubscriber = (value: number, velocity: number) => void;
@@ -4047,8 +4120,7 @@ export declare interface SpringTimingFunctionOptions {
4047
4120
  maxDuration?: number;
4048
4121
  }
4049
4122
 
4050
- /** Spring-eased wobble — gentle spring (ζ 0.95) for a soft attention nudge. */
4051
- declare const springWobble: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4123
+ declare const springWobble: PresetFactory;
4052
4124
 
4053
4125
  /**
4054
4126
  * Build a per-index delay generator. Pure construction-time — the returned
@@ -4113,7 +4185,7 @@ export declare type StaggerOrigin = "first" | "last" | "center" | "edges" | numb
4113
4185
  * CE-1.0 precedent). Returns `false` where `CSS`/`CSS.supports` is absent (SSR,
4114
4186
  * jsdom) OR the property/keyword is unknown, so the caller keeps the kf driver.
4115
4187
  */
4116
- declare function supportsNativeTrigger(): boolean;
4188
+ export declare function supportsNativeTrigger(): boolean;
4117
4189
 
4118
4190
  declare abstract class SVGAnimationHandle<V extends Vars = Vars> {
4119
4191
  readonly animation: CSSKeyframesAnimation<V>;
@@ -4162,7 +4234,7 @@ export declare interface TemplateAnimationFrame<V extends Vars> {
4162
4234
  composition?: CompositeOperator;
4163
4235
  }
4164
4236
 
4165
- declare const textFocusBlur: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4237
+ declare const textFocusBlur: PresetFactory;
4166
4238
 
4167
4239
  /**
4168
4240
  * The layout-INDEPENDENT segmenters for `splitText` — `by: "word"` and
@@ -4286,10 +4358,10 @@ export declare type TransformFunction<V extends Vars> = (v: V, t: number) => voi
4286
4358
  * one `_defaultTransform` (`usesDefaultRenderer`) — typed and
4287
4359
  * bind-proof, not a Symbol tag a wrapper would silently drop.
4288
4360
  */
4289
- declare function transformTargetsStyle<V extends Vars>(vars: V, targets: HTMLElement[], flat?: boolean): void;
4361
+ export declare function transformTargetsStyle<V extends Vars>(vars: V, targets: HTMLElement[], flat?: boolean): void;
4290
4362
 
4291
4363
  /** The play direction a trigger cycle runs — `alternate` flips it each entry. */
4292
- declare type TriggerDirection = "forward" | "backward";
4364
+ export declare type TriggerDirection = "forward" | "backward";
4293
4365
 
4294
4366
  /**
4295
4367
  * The kf `TriggerScene` — realizes a parsed `AnimationTriggerValue` as the
@@ -4313,7 +4385,7 @@ declare type TriggerDirection = "forward" | "backward";
4313
4385
  * an engine; it advances with the within-range fraction while `active`. The gate
4314
4386
  * asserts the STATE sequence (scrub-based, C-10 — never a frame/ms threshold).
4315
4387
  */
4316
- declare class TriggerScene {
4388
+ export declare class TriggerScene {
4317
4389
  /** The parsed `<trigger-type>` (CSS initial value is `once`). */
4318
4390
  readonly type: TriggerType;
4319
4391
  private readonly triggerRange;
@@ -4369,11 +4441,11 @@ declare class TriggerScene {
4369
4441
  * The canonical `once` lifecycle is `idle → active → done`; the other three
4370
4442
  * types are variations over the SAME vocabulary (§`triggerProgress`).
4371
4443
  */
4372
- declare type TriggerState = "idle" | "active" | "done";
4444
+ export declare type TriggerState = "idle" | "active" | "done";
4373
4445
 
4374
- declare const typewriter: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4446
+ declare const typewriter: PresetFactory;
4375
4447
 
4376
- declare const typingCursor: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4448
+ declare const typingCursor: PresetFactory;
4377
4449
 
4378
4450
  /** Thrown when a string easing name cannot be resolved through the registry. */
4379
4451
  export declare class UnknownEasingError extends Error {
@@ -4396,7 +4468,7 @@ export declare class UnknownEasingError extends Error {
4396
4468
  * 3. `compileToCSS([anim], opts.compile)` → `{ eligible, refusals }`.
4397
4469
  * 4. `isWAAPIEligible(anim)` → the compositor-thread verdict.
4398
4470
  */
4399
- declare function validate(css: string, opts?: ValidateOptions): Promise<ValidateResult>;
4471
+ export declare function validate(css: string, opts?: ValidateOptions): Promise<ValidateResult>;
4400
4472
 
4401
4473
  /**
4402
4474
  * Options for {@link validate} / {@link explain}. A thin pass-through to the
@@ -4421,7 +4493,7 @@ export declare interface ValidateOptions {
4421
4493
  */
4422
4494
  export declare interface ValidateResult {
4423
4495
  /**
4424
- * True iff value.js parsed the CSS without a `PARSE_ERROR` diagnostic — the
4496
+ * True iff the adapter produced no `EMPTY_PARSE` diagnostic — the
4425
4497
  * block surfaced at least one recognized stylesheet item (a `@keyframes` /
4426
4498
  * `@property` / style rule). A spec-invalid keyframe `!important` declaration
4427
4499
  * is SILENTLY dropped at the AST by value.js (the L.W1 S1 reality) — that drop
@@ -4610,19 +4682,12 @@ declare type WAAPIEligibility = {
4610
4682
  reason: string;
4611
4683
  };
4612
4684
 
4613
- /**
4614
- * Fire-and-forget idle-warmer for the heavy engine. Pre-flights
4615
- * `loadAnimationEngine()`'s dynamic import during idle (`requestIdleCallback` /
4616
- * `visibilitychange` / `mouseenter`) so the first `new CSSKeyframesAnimation()`
4617
- * on a cold page resolves against an already-in-flight Promise. Idempotent and
4618
- * value.js-free — it shares the one memoized `_enginePromise` (no double import)
4619
- * and names only a dynamic import (`proof:boundary` stays green).
4620
- */
4685
+ /** Start loading the heavy surface without awaiting it. */
4621
4686
  export declare const warmEngine: () => void;
4622
4687
 
4623
- declare const warpLeft: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4688
+ declare const warpLeft: PresetFactory;
4624
4689
 
4625
- declare const warpRight: (options?: InputAnimationOptions) => CSSKeyframesAnimation< Vars>;
4690
+ declare const warpRight: PresetFactory;
4626
4691
 
4627
4692
  /**
4628
4693
  * Map a phase ∈ ℝ to its waveform value ∈ [-1, 1]. Pure — the phase is reduced
@@ -4668,6 +4733,6 @@ export declare interface WeightStepper {
4668
4733
  * fallback per the Baseline browser policy. SSR-safe: resolves immediately
4669
4734
  * off-DOM (no event loop to yield to that matters for a headless render).
4670
4735
  */
4671
- declare function yieldToMain(): Promise<void>;
4736
+ export declare function yieldToMain(): Promise<void>;
4672
4737
 
4673
4738
  export { }