export type DraftFunction = (draft: S) => void; export type Updater = (arg: S | DraftFunction) => void; export type ImmerHook = [S, Updater]; export declare function useImmer(): ImmerHook; export declare function useImmer(initialValue: S | (() => S)): ImmerHook;