declare type TCoroutineProps = { cancelOthers: () => void; index: number; }; declare type GeneratorFactory = (props: TCoroutineProps) => Generator, void, any>; declare type RefObject = { current: T; }; export declare const onUpdateAsync:

(onUpdateFn: (props: RefObject

) => GeneratorFactory, watchKeys: (keyof P)[]) => (props: P) => P; export {};