import { posix } from 'path'; /** * This is called "isPosix" rather than "isNotWindows" because even if we are * on Windows, we could be running in a POSIX environment (e.g. WSL2) */ export declare const isPosix: boolean; export declare const toPosixPathSeparators: (relativePath: string) => string; export declare const normalizePath: (relativePath: string) => string; /** * On Windows, replace all `/` in the path back with `\\`. Do this only if you * wish to output the path in the console or error message. * On POSIX system (macOS, Linux, ...), this does not change the path (because * inside the compiler we use `/` everywhere). */ export declare const toSystemPathSeparators: (relativePath: string) => string; /** * Like `process.cwd()`, but always returns a POSIX-style path * (with `/` as separator). */ export declare const getCwd: () => string; /** * A wrapper for Node.js's `path` module that always uses POSIX-style paths * (with `/` as separator). */ export declare const path: typeof posix & { sep: "/"; }; export declare const exportsForTests: { toWin32PathSeparators: (relativePath: string) => string; };