/** * `codebase-ast-replace` tool — surgically replace a function, method, or class body via AST. * * Usage: codebase-ast-replace({ * file: string, // relative or absolute file path * symbol: string, // name of the function, method, or declaration to mutate * newBody: string, // new implementation code * target?: 'body' | 'full', // whether to replace only the body (default) or the full declaration * }) */ import { type Tool } from '@wrongstack/core/types'; import { type MutateSymbolOptions } from './ast-symbol-mutator.js'; export interface CodebaseAstReplaceInput extends MutateSymbolOptions { } export interface CodebaseAstReplaceOutput { status: 'ok'; file: string; symbol: string; originalRange: { startLine: number; endLine: number; }; newRange: { startLine: number; endLine: number; }; violations?: string[] | undefined; } export declare const codebaseAstReplaceTool: Tool; //# sourceMappingURL=codebase-ast-replace-tool.d.ts.map