import { Logger, Updater } from './type'; export type { Logger, Updater, UpdateState } from './type'; declare type Options = { logger?: Logger; deps?: any[]; }; declare type UpdaterConfig = { silent?: boolean; }; export declare const useImmer: (initialValue: T, options?: Options) => readonly [T, (updater: Updater, stateCallback?: ((state: T) => void) | undefined) => Promise, { readonly updaterReturn: UR | null; readonly set: (nextValue: T, config?: UpdaterConfig | undefined) => void; readonly clear: () => void; readonly value: T; }];