import { AnyFunction, AnyObject } from "./util"; /** * 创建一个自动绑定 this 的函数, * 在 proxy 模式下,在可观察对象上声明箭头函数,箭头函数中将去响应, * 所以请在 proxy 模式下使用普通函数,如果想强制绑定 this 时才使用此 API * @param target 原始函数 */ export declare function bind(fn: T): T; /** * bind 也可作为类成员装饰器 @bind 使用 * * ★ legacy 模式的 @bind * * @param prototype 类原型 * @param member 类成员 * @returns void */ export declare function bind(prototype: AnyObject, member: string, descriptor: PropertyDescriptor): PropertyDescriptor; /** * bind 还可作为类成员装饰器 @bind 使用 * * ★ Stage-3 模式的 @bind * * @param value 原始类成员函数 * @param context 装饰器上下文对象 * @returns any */ export declare function bind(value: T, context: DecoratorContext): T; //# sourceMappingURL=Bind.d.ts.map