/**
 * @module @arcis/node/sanitizers/command
 * Command injection prevention
 */
import type { SanitizeResult } from '../core/types';
/**
 * Sanitizes a string to prevent command injection attacks.
 * Replaces shell metacharacters and dangerous commands with [BLOCKED].
 *
 * @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
 * sanitizeCommand("file.txt; rm -rf /")
 * // Returns: "file.txt  rm -rf /"
 */
export declare function sanitizeCommand(input: string, collectThreats?: false): string;
export declare function sanitizeCommand(input: string, collectThreats: true): SanitizeResult;
/**
 * Checks if a string contains command injection patterns.
 * Does not sanitize — use sanitizeCommand() for that.
 *
 * @param input - The string to check
 * @returns True if command injection patterns detected
 */
export declare function detectCommandInjection(input: string): boolean;
//# sourceMappingURL=command.d.ts.map