/** * Security validation utilities. * Prevents path traversal, command injection, and unsafe path operations. */ /** * Validates a git ref for safe use in shell commands. * Rejects refs containing shell metacharacters or control characters. * * @param ref - Git ref (branch, tag, or commit SHA) * @returns The ref if valid * @throws If ref contains unsafe characters */ export declare function validateGitRef(ref: string): string; /** * Validates a file path and resolves it safely. * Rejects paths that escape the base directory or exceed length limits. * * @param path - Path to validate * @param baseDir - Base directory (default: cwd) * @returns Resolved absolute path * @throws If path is invalid or escapes base */ export declare function validatePath(path: string, baseDir?: string): string; /** * Validates that a path does not contain path traversal sequences * before resolution. */ export declare function sanitizePathComponent(component: string): string; //# sourceMappingURL=validation.d.ts.map