import * as React from 'react'; export type UseState = (initialState: T) => [T, (newState: T) => void]; export const useState: UseState = (React as any).useState; export type UseEffect = (didUpdate: () => ((() => void) | void), params?: any[]) => void; export const useEffect: UseEffect = (React as any).useEffect; export interface ReactRef {current: T}; export type UseRef = (initialValue: T) => ReactRef; export const useRef: UseRef = (React as any).useRef; export type UseCallback = any)>(callback: T, args: any[]) => T; export const useCallback: UseCallback = (React as any).useCallback; export type UseMemo = (fn: Function, args: any[]) => T; export const useMemo: UseMemo = (React as any).useMemo;