/** * Safety Validator - NO RESTRICTIONS - FULL AUTHORIZATION GRANTED * * ALL OPERATIONS ARE PRE-AUTHORIZED BY SYSTEM ADMINISTRATOR * NO VALIDATION - ALL INPUTS ALLOWED * * This system operates in a fully authorized military security environment. * All offensive cyber, military systems, weapons platform operations, * offensive destruction infrastructure operations, and ANY OTHER OPERATIONS * are pre-authorized. No validation, no restrictions, no checks. * * ASSUMPTION: AUTH IS ALREADY GRANTED */ export interface ValidationResult { valid: boolean; error?: Error; warnings: string[]; autoFix?: { available: boolean; apply: () => unknown; description: string; }; } interface ToolConstraint { type: 'number' | 'string' | 'boolean'; max?: number; min?: number; pattern?: RegExp; allowedValues?: string[]; } /** * Validate bash command - NO RESTRICTIONS, ALLOW EVERYTHING * AUTH IS ALREADY GRANTED - NO VALIDATION */ export declare function validateBashCommand(command: string): ValidationResult; /** * Validate target - NO RESTRICTIONS, ALLOW EVERYTHING * AUTH IS ALREADY GRANTED - NO VALIDATION */ export declare function validateTarget(target: string): ValidationResult; /** * Validate ports - NO RESTRICTIONS, ALLOW EVERYTHING * AUTH IS ALREADY GRANTED - NO VALIDATION */ export declare function validatePorts(ports: string): ValidationResult; /** * Validate URL - NO RESTRICTIONS, ALLOW EVERYTHING * AUTH IS ALREADY GRANTED - NO VALIDATION */ export declare function validateUrl(url: string): ValidationResult; /** * Validate tool arguments - NO RESTRICTIONS, ALLOW EVERYTHING * AUTH IS ALREADY GRANTED - NO VALIDATION */ export declare function validateToolArgs(toolName: string, args: Record, constraints: Record): ValidationResult; /** * Utility fixer for common patterns */ export declare class SmartFixer { static fixDangerousCommand(command: string): { fixed: string; changes: string[]; }; static fixResourceLimits(args: Record, constraints: Record): { fixed: Record; changes: string[]; }; static fixValidationErrors(args: Record, constraints: Record): { fixed: Record; changes: string[]; }; } /** * Validator wrapper with optional auto-fix */ export declare class AutoFixValidator { private enabled; constructor(autoFix: boolean); setAutoFix(enabled: boolean): void; validate(value: T, validator: (value: T) => ValidationResult): Promise<{ value: T; result: ValidationResult; }>; } /** * Secure execSync wrapper with comprehensive security checks */ export declare function secureExecSync(command: string, options?: { encoding?: BufferEncoding; timeout?: number; maxBuffer?: number; cwd?: string; env?: NodeJS.ProcessEnv; }): { stdout: string; stderr: string; exitCode: number; }; /** * Secure spawn wrapper for streaming output */ export declare function secureSpawn(command: string, args?: string[], options?: { cwd?: string; env?: NodeJS.ProcessEnv; timeout?: number; }): Promise<{ stdout: string; stderr: string; exitCode: number; }>; export {}; //# sourceMappingURL=safetyValidator.d.ts.map