export = curry; // TODO: get more specific with permssible param types for returned function declare function curry( fn: Function, arity?: number, ) : Function;