/** @module function/bindToInstance.ts */ import { FunctionPropertyNames } from '../helper-types'; /** * Bind an object or instance method's `this` to itself and return the resulting function * @param obj * @param method * const specialSlice = bindToInstance([1,2,3,4,5,6],'slice') * specialSlice(2,4) //=> [3,4] */ export declare function bindToInstance>(obj: T, method: K): T[K]; export declare function bindToInstance>(obj: T): (method: K) => T[K]; export default bindToInstance;