/** Normalize Windows backslashes to POSIX forward slashes. */ export declare function normalizeSlashes(path: string): string; /** Remove a single leading "./" segment and any immediate extra slashes. */ export declare function trimLeadingDotSlash(path: string): string; /** Remove a single leading "./" prefix. */ export declare function trimLeadingCurrentDirPrefix(path: string): string; /** Remove a leading "." marker and at most one following slash. */ export declare function trimLeadingDotPrefix(path: string): string; /** Remove one leading all-dot segment (e.g. "./", "../", ".../"). */ export declare function trimLeadingDotsSegment(path: string): string; /** Check if a path is absolute (starts with '/', 'C:\', or '\\'). */ export declare function isAbsolutePath(path: string): boolean; /** Remove leading forward slashes from a path-like string. */ export declare function trimLeadingSlashes(value: string): string; /** Remove trailing forward slashes from a path-like string. */ export declare function trimTrailingSlashes(value: string): string; /** Normalize a path to a stable key form (relative, no outer slashes, '.' for root). */ export declare function normalizePathKey(path: string): string; /** Normalize workspace-relative values while preserving absolute roots. */ export declare function normalizeWorkspaceRelativePath(path: string): string; /** Normalize a path to be relative to the current working directory. */ export declare function normalizePath(path: string): string; /** Get the base name of a file system path e.g. /path/to/file.ts -> file */ export declare function baseName(path: string, extension?: string): string; /** Get the extension from a file path e.g. readme.md -> .md */ export declare function extensionName(path: string): string; /** Get the directory name from a file path e.g. /path/to/file.ts -> /path/to */ export declare function directoryName(path: string): string; /** Remove the extension from a file path e.g. readme.md -> readme */ export declare function removeExtension(filePath: string): string; /** Remove all extensions from a file path e.g. Button.examples.tsx -> Button */ export declare function removeAllExtensions(filePath: string): string; /** Remove order prefixes from a file path e.g. 01.intro -> intro */ export declare function removeOrderPrefixes(filePath: string): string; /** Join multiple paths together */ export declare function joinPaths(...paths: (string | undefined)[]): string; /** Get the relative path from one file to another */ export declare function relativePath(from: string, to: string): string; /** Ensure a path is relative */ export declare function ensureRelativePath(path?: string): string;