export default function (fn: any, limit?: number): (this: any) => any;