/** * Help to merge callback with `useLayoutEffect`. * One time will only trigger once. */ export default function useUpdate(callback: VoidFunction): () => void; type Callback = (ori: T) => T; export declare function useUpdateState(defaultState: T | (() => T)): [T, (updater: Callback) => void]; export {};