/** * Path validation utilities for configuration files. * Provides basic path validation to prevent path traversal attacks. */ /** * Validates that a path is within an allowed directory. * * @param configPath - The path to validate * @param allowedDirs - Array of allowed parent directories * @returns true if path is valid, false otherwise */ export declare function isValidConfigPath(configPath: string, allowedDirs: string[]): boolean; /** * Ensures a path is absolute and normalized. * * @param configPath - The path to sanitize * @returns Normalized absolute path */ export declare function sanitizeConfigPath(configPath: string): string; /** * Validates that a filename doesn't contain path traversal characters. * * @param filename - The filename to validate * @returns true if filename is safe, false otherwise */ export declare function isSafeFilename(filename: string): boolean; //# sourceMappingURL=path-validator.d.ts.map