/** * `useCombine(sources, fn)` returns a derived `MotionValue` whose * value is recomputed from `fn(...sourceValues)` whenever any source * updates. The derived cell is destroyed when the calling component * unmounts. * * const x = useMotionValue(0) * const y = useMotionValue(0) * const dist = useCombine([x, y], (a, b) => Math.hypot(a, b)) */ import { type CombinedMotionValue, type MotionValue } from "@kinem/core"; type SourceValues[]> = { [K in keyof S]: S[K] extends MotionValue ? V : never; }; export declare function useCombine[], T>(sources: S, fn: (...values: SourceValues) => T): CombinedMotionValue; export {}; //# sourceMappingURL=useCombine.d.ts.map