declare type Updater = T | ((origin: T) => T); export default function useStateCallback(initialState: T | (() => T)): [T, (state: Updater, cb?: (state: T) => void) => void]; export {};