import { Join } from 'type-fest'; type AbsolutePath = `/${string}`; type CWD = AbsolutePath; declare function isCWD(path: string): path is CWD; declare function getCurrentWorkingDirectory(): CWD; declare function joinPaths(paths: T): Join; declare function getNearestPackageRootPath(cwd?: string): AbsolutePath; type ConfigFileName = string; type ConfigPath = Join<[A, N], "/">; declare function getNearestConfigPath(fileName: N, cwd?: A): ConfigPath; export { AbsolutePath, CWD, ConfigFileName, ConfigPath, getCurrentWorkingDirectory, getNearestConfigPath, getNearestPackageRootPath, isCWD, joinPaths };