import { Patch, PatchError } from "@valbuild/core/patch"; import { result } from "@valbuild/core/fp"; import { type ValSyntaxErrorTree } from "./patch/ts/syntax.js"; import { ValSourceFileHandler } from "./ValSourceFileHandler.js"; import ts from "typescript"; export declare const patchValFile: (id: string, rootDir: string, patch: Patch, sourceFileHandler: ValSourceFileHandler) => Promise; export declare const patchSourceFile: (sourceFile: ts.SourceFile | string, patch: Patch) => result.Result;