interface Patch { diff: (prevState: T, nextState: T) => T; apply: (state: T, patches: T) => T; } declare const patch: Patch; export = patch;