/** * A decorator function that automatically binds class methods to the instance of the class. * This function is intended to be used as a decorator on class methods to ensure the correct context (`this` value) * is maintained when the method is called, especially when passing the method as a callback. * * @param _target The prototype of the class (not used in the implementation but required by the decorator signature). * @param context The context provided by the decorator, containing the method's name and an initializer function. * @param context.addInitializer A function that adds an initializer to the class constructor. * @param context.name The name of the method to be bound. * * @example * ```tsx * class MyComponent { * @autobind * myMethod() { * // This method is automatically bound to instances of MyComponent. * } * } * ``` */ export declare const autobind: (_target: (this: This, ...args: Args) => Return, { addInitializer, name }: ClassMethodDecoratorContext Return>) => any;