/*! * @thednp/tween primitives for SolidJS v0.1.5 (https://github.com/thednp/tween) * Copyright 2026 © thednp * Licensed under MIT (https://github.com/thednp/tween/blob/master/LICENSE) */ "use strict"; import { Timeline, Tween, TweenProps } from "@thednp/tween"; //#region src/solid/miniStore.d.ts /** * Creates a reactive store for the given initial values, where every * property is backed by a SolidJS signal. Reading a property inside a * component tracks the signal; writing it (e.g. by the tween update loop) * triggers reactivity. * * @template T - The type of the state object * @param init - The initial values object * @returns The reactive state object */ declare function miniStore(init: T): T; //#endregion //#region src/solid/index.d.ts /** * SolidJS primitive for updating values with Tween. * * @param initialValues - Initial tween values * @returns [store, tween] Tuple of reactive store and Tween instance * @example * const App = () => { * const [state, tween] = createTween({ x: 0, y: 0 }) * * // configuration is free-form, no re-render ever happens * tween.to({ x: 100, y: 100 }) * * onMount(() => { * tween.start() * }) * * return ( *
* ); * } */ declare function createTween(initialValues: T): readonly [T, Tween]; /** * SolidJS primitive for sequencing values update with Timeline. * * @param initialValues - Initial tween values * @returns [store, timeline] Tuple of reactive store and Timeline instance * @example * const App = () => { * const [state, timeline] = createTimeline({ x: 0, y: 0 }) * * // configuration is free-form * timeline.to({ x: 100, y: 100 }) * * onMount(() => { * timeline.play() * }) * * return ( *
* ); * } */ declare function createTimeline(initialValues: T): readonly [T, Timeline]; //#endregion export { Timeline, Tween, createTimeline, createTween, miniStore }; //# sourceMappingURL=solid.d.mts.map