import type { Host } from "../host/host.js"; export { prepareContainedPath as _prepareContainedPath } from "./prepareContainedPath.js"; export { resolveRedirectTarget as _resolveRedirectTarget } from "./prepareContainedPath.js"; /** The real spelling of a directory, for an interrupt payload. */ export declare function _realDir(dir: string): Promise; /** The real spelling of a whole path, for an interrupt payload. */ export declare function _realTarget(p: string): Promise; export type MultiEdit = { oldText: string; newText: string; replaceAll: boolean; }; export type MultiEditResult = { replacements: number; path: string; edits: number; }; export declare function _previewEdit(rootDir: string, filename: string, edits: MultiEdit[]): Promise<{ before: string; after: string; }>; export declare function _multiedit(rootDir: string, filename: string, edits: MultiEdit[]): Promise; export type PatchResult = { applied: number; files: string[]; }; /** The real whole path of every file a patch touches, in patch order, for * the `std::applyPatch` payload. Paths in the patch text are relative to * the run's working directory. */ export declare function _patchFiles(patch: string): Promise; /** Apply a parsed patch. `approved` is the file list the approver saw, from * `_patchFiles`; each entry is taken through `fixedPath`, so a link planted * at one of those paths after approval is refused. Without it, as from a * direct TypeScript caller, each path is resolved from the patch text. */ export declare function _applyPatch(patch: string, allowedPaths?: string[], approved?: string[]): Promise; export declare function _mkdir(dir: string, allowedPaths?: string[]): Promise; export declare function _copy(src: string, dest: string, allowedPaths?: string[]): Promise; export declare function _move(src: string, dest: string, allowedPaths?: string[]): Promise; export declare function _remove(target: string, allowedPaths?: string[]): Promise; export declare function rejectDangerousPath(host: Host, p: string, op: string, role: string): Promise;