/*! * @thednp/tween utils for Svelte 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/svelte/miniStore.svelte.d.ts /** * Creates a reactive store for the given initial values, where every * property is backed by a Svelte 5 `$state` primitive. Reading a property * inside a component tracks the state; 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/svelte/index.svelte.d.ts /** * Svelte hook for updating values with Tween. * * @param initialValues - Initial tween values * @returns [store, tween] Tuple of reactive store and Tween instance * * @example * * *
*/ declare function createTween(initialValues: T): readonly [T, Tween]; /** * Svelte hook for sequencing values update with Timeline. * * @param initialValues - Initial tween values * @returns [store, timeline] Tuple of reactive store and Timeline instance * * @example * * *
*/ declare function createTimeline(initialValues: T): readonly [T, Timeline]; //#endregion export { Timeline, Tween, createTimeline, createTween, miniStore }; //# sourceMappingURL=svelte.d.mts.map