import type { ActivityOptions } from '../types.js'; /** * @Activity() decorator — can be used on a class (to group activities) * or on individual methods. * * When used on a class, all public async methods become activities. * When used on a method, only that method is registered. * * Usage: * ```typescript * // Class-level: all methods become activities * @Activity({ taskQueue: 'my-queue' }) * class MyActivities { * async processOrder(order: Order): Promise { ... } * async sendEmail(to: string, body: string): Promise { ... } * } * * // Method-level: individual activity with options * class MyActivities { * @Activity({ retry: { maxAttempts: 5 } }) * async riskyOperation(): Promise { ... } * } * ``` */ export declare function Activity(options?: ActivityOptions): (target: any, propertyKeyOrContext?: string | ClassMethodDecoratorContext | ClassDecoratorContext, descriptor?: PropertyDescriptor) => any;