import { Readable } from 'svelte/store'; interface SpringOpts { stiffness?: number; damping?: number; precision?: number; } interface SpringUpdateOpts { hard?: any; soft?: string | number | boolean; } declare type Updater = (target_value: T, value: T) => T; interface Spring extends Readable { set: (new_value: T, opts?: SpringUpdateOpts) => Promise; update: (fn: Updater, opts?: SpringUpdateOpts) => Promise; precision: number; damping: number; stiffness: number; } export declare function spring(value?: T, opts?: SpringOpts): Spring; export {};