import { type MethodDeclaration } from 'ts-morph'; import { type CrossServiceCall } from './cross-service-call-detector.js'; /** * Rewrites method bodies to use injected services for cross-service calls. * * Transforms: * - `this.sortUsers(users)` → `this.transformationService.sortUsers(users)` */ export declare class MethodCallRewriter { /** * Rewrites cross-service calls in a method body. * * @param method - Method to rewrite * @param crossServiceCalls - Cross-service calls detected in this method * @param servicePropertyMap - Map of service name to property name (e.g., 'TransformationService' → 'transformationService') * @returns Rewritten method body text */ rewriteMethodBody(method: MethodDeclaration, crossServiceCalls: CrossServiceCall[], servicePropertyMap: Map): string; /** * Converts service name to property name. * * @param serviceName - Service name (e.g., 'TransformationService') * @returns Property name (e.g., 'transformationService') */ toPropertyName(serviceName: string): string; } //# sourceMappingURL=method-call-rewriter.d.ts.map