import type { Clark } from "../../state-machine/clark-fsm.js";
import type { ClarkStateHandlerParams } from "../../state-machine/clark-fsm.js";
export type Replacer = (content: string, find: string) => Generator<string, void, unknown>;
export declare const SimpleReplacer: Replacer;
export declare const LineTrimmedReplacer: Replacer;
export declare const BlockAnchorReplacer: Replacer;
export declare const WhitespaceNormalizedReplacer: Replacer;
export declare const IndentationFlexibleReplacer: Replacer;
export declare const EscapeNormalizedReplacer: Replacer;
export declare function replace(content: string, oldString: string, newString: string, replaceAll?: boolean): string;
export declare const buildEditFileToolFactory: import("../tools2/types.js").ToolFactory<{
    clark: Clark;
    services: Pick<ClarkStateHandlerParams, "appShell">;
}, import("../tools2/types.js").Tool<{
    filePath: string;
    oldString: string;
    newString: string;
    replaceAll?: boolean | undefined;
}, {
    filePath: string;
    diff: string;
    oldStringLength: number;
    newStringLength: number;
    replaceAll: boolean;
    message: string;
} | {
    filePath: string;
    diff: string;
    message: string;
}>>;
//# sourceMappingURL=build-edit-file.d.ts.map