import type { FileSystem } from "../../utils/file-system.js"; export declare function tryLstat(fs: FileSystem, path: string): Promise; export declare function formatLoggedPath(message: string, env: { cwd: string; homeDir: string; }): string; export declare function isPermissionError(error: unknown): error is NodeJS.ErrnoException; export type SymlinkOp = { kind: "rename"; from: string; to: string; } | { kind: "symlink"; target: string; path: string; } | { kind: "noop"; reason: string; } | { kind: "conflict"; message: string; }; export declare function applySymlinkOps(fs: FileSystem, ops: SymlinkOp[], opts: { dryRun: boolean; log: (msg: string) => void; }): Promise<{ conflicts: number; }>; export declare function isSymlinkPointingTo(fs: FileSystem, path: string, expectedTarget: string): Promise;