export interface JunctionOps { platform?: NodeJS.Platform; } /** True if the path exists and is a symlink/junction (not a real directory). */ export declare function isLink(linkPath: string): boolean; /** The raw target the link points at, or null. */ export declare function readTarget(linkPath: string): string | null; /** * Point `linkPath` at `targetDir`, creating or atomically re-pointing the link. * Uses a Windows junction (no admin needed) or a POSIX directory symlink. * Refuses to touch `linkPath` if it exists as a REAL directory, so it can never * clobber a real config folder. */ export declare function setTarget(linkPath: string, targetDir: string, ops?: JunctionOps): void; /** Remove the link if it is one. Refuses to remove a real directory. */ export declare function removeTarget(linkPath: string): void;