/**
 * Regex fragments and validators for normalized filesystem paths.
 *
 * Paths are UTF-8 strings matching a strict subset of RFC 3986.
 * - leading slash
 * - no duplicate slashes
 * - no backslashes
 * - segments composed of unreserved characters
 */
/**
 * Regex string describing a normalized file path (no trailing slash, not root).
 */
export declare const FILE_PATH_PATTERN: string;
export declare const DIRECTORY_PATH_PATTERN: string;
/**
 * Test whether a path matches the normalized file form.
 */
export declare function isValidFilePath(path: string): boolean;
/**
 * Test whether a path matches the normalized directory form.
 */
export declare function isValidDirectoryPath(path: string): boolean;
export declare function splitFilePath(path: string): {
    directoryPath: string | null;
    name: string;
    extension: string | null;
};
export declare function composeFileName(name: string, extension: string | null): string;
export declare function composeFilePath(args: {
    directoryPath: string | null;
    name: string;
    extension: string | null;
}): string;
export declare function normalizeFilePath(path: string): string;
export declare function normalizeDirectoryPath(path: string): string;
export declare function normalizePathSegment(segment: string): string;
//# sourceMappingURL=path.d.ts.map