import { Patch } from 'immer'; declare type Updater = (state: T) => void | any | Promise; export declare const produceWithAsync: (state: T, updater: Updater) => Promise; export declare const produceWithPatchesAsync: (state: T, updater: Updater) => Promise<[T, Patch[], Patch[]]>; export {};