import Path from "path"; declare abstract class ImprovedPath { static joinPathSegments(pathSegments: ReadonlyArray, options?: Readonly<{ alwaysForwardSlashSeparators: boolean; }>): string; static buildAbsolutePathFromCurrentWorkingDirectory(pathSegments: ReadonlyArray, options?: Readonly<{ alwaysForwardSlashSeparators: boolean; }>): string; static computeRelativePath(namedParameters: Readonly<{ basePath: string; comparedPath: string; alwaysForwardSlashSeparators?: boolean; }>): string; static parsePath(targetPath: string): ImprovedPath.ParsingResult; static replacePathSeparatorsToForwardSlashes(targetPath: string): string; static explodePathToSegments(targetPath: string): Array; static doesPathEndWithFileNameExtension(namedParameters: Readonly<{ targetPath: string; mustConsiderLasPathSegmentBeginsFromDotAsTheFileNameWithoutExtension: boolean; }>): boolean; static extractFileNameWithoutExtensionFromPath(namedParameters: Readonly<{ targetPath: string; mustThrowErrorIfLastPathSegmentHasNoDots: false; }>): string | null; static extractFileNameWithoutExtensionFromPath(namedParameters: Readonly<{ targetPath: string; mustThrowErrorIfLastPathSegmentHasNoDots: true; }>): string; static extractDirectoryFromFilePath(compoundParameter: Readonly<{ targetPath: string; ambiguitiesResolution: Readonly<{ mustConsiderLastSegmentStartingWithDotAsDirectory: boolean; mustConsiderLastSegmentWithNonLeadingDotAsDirectory: boolean; mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: boolean; }>; alwaysForwardSlashSeparators?: boolean; }>): string; } declare namespace ImprovedPath { class ParsingResult { #private; constructor(namedParameters: Readonly<{ rawPath: string; nativeParsedPath: Path.ParsedPath; }>); get root(): string | null; get root__forwardSlashesSeparators(): string | null; getRootExpectedToExist(namedParameters?: Readonly<{ alwaysForwardSlashesSeparators: boolean; }>): string; get directory(): string | null; get directory__forwardSlashesSeparators(): string | null; getDirectoryExpectedToExist(namedParameters?: Readonly<{ alwaysForwardSlashesSeparators: boolean; }>): string; get directoryExplodedToPathSegments(): ReadonlyArray; } } export default ImprovedPath;