/** * Path Validation Utilities (SMI-720) * * Path traversal prevention validators. */ /** * Validate file path to prevent path traversal attacks (SMI-720) * * Ensures the resolved path remains within the allowed root directory. * * @param path - Path to validate (can be relative or absolute) * @param rootDir - Root directory that must contain the path * @throws {ValidationError} if path escapes root directory * * @example * ```typescript * validatePath('skills/my-skill', '/home/user/.claude') // OK * validatePath('../etc/passwd', '/home/user/.claude') // Throws ValidationError * validatePath('/etc/passwd', '/home/user/.claude') // Throws ValidationError * ``` */ export declare function validatePath(path: string, rootDir: string): void; //# sourceMappingURL=path-validators.d.ts.map