export type Func = (...args: X) => Y; export declare const setName: (f: Func, name: string) => Func;