export default function named, R>(name: string, func: (...args: A) => R): (...args: A) => R;