export default function useMethods any>>(fn: T): T;