export default function useAvoidClosure(fn: Function): (...args: any[]) => any;