export declare function collectivize(state: S | (() => S)): (collector: (state: S) => D) => (() => D);