/**
 * @module @arcis/node/sanitizers/path
 * Path traversal prevention
 */
import type { SanitizeResult } from '../core/types';
/**
 * Sanitizes a string to prevent path traversal attacks.
 * Removes ../ and ..\ patterns (including URL-encoded variants).
 *
 * @param input - The string to sanitize
 * @param collectThreats - Whether to collect threat information (default: false for performance)
 * @returns Sanitized string or SanitizeResult if collectThreats is true
 *
 * @example
 * sanitizePath("../../etc/passwd")
 * // Returns: "etc/passwd"
 */
export declare function sanitizePath(input: string, collectThreats?: false): string;
export declare function sanitizePath(input: string, collectThreats: true): SanitizeResult;
/**
 * Checks if a string contains path traversal patterns.
 * Does not sanitize — use sanitizePath() for that.
 *
 * @param input - The string to check
 * @returns True if path traversal patterns detected
 */
export declare function detectPathTraversal(input: string): boolean;
//# sourceMappingURL=path.d.ts.map