type AnimateCbFn = (cancelAnimation: () => void) => void; declare const animate: (fn: AnimateCbFn, fps?: number) => () => void; export default animate;