/**
 * Bash Output Sanitizer
 *
 * Sanitizes bash command outputs to prevent credential leaks.
 * Integrates with credential-masker to protect sensitive data in shell outputs.
 *
 * Use cases:
 * - Sanitizing `grep` outputs that search for env variables
 * - Cleaning command outputs before displaying to users
 * - Protecting logs from accidental credential exposure
 */
/**
 * Sanitize command output before displaying
 *
 * @param output - Raw command output
 * @param command - Original command (for context)
 * @returns Sanitized output safe for display
 *
 * @example
 * sanitizeCommandOutput('GITHUB_TOKEN=ghp_123456', 'grep GITHUB_TOKEN .env')
 * // Returns: 'GITHUB_TOKEN=ghp_****456'
 */
export declare function sanitizeCommandOutput(output: string, command?: string): string;
/**
 * Wrap a bash command execution with automatic output sanitization
 *
 * @param executor - Function that executes the command and returns output
 * @param command - Command being executed
 * @returns Sanitized output
 */
export declare function sanitizedExec<T>(executor: () => Promise<T>, command: string): Promise<T>;
/**
 * Check if a command is potentially sensitive
 *
 * @param command - Command to check
 * @returns True if command might expose credentials
 */
export declare function isSensitiveCommand(command: string): boolean;
/**
 * Sanitize a command string for logging
 *
 * Masks credential values in the command itself
 *
 * @param command - Command to sanitize
 * @returns Sanitized command
 *
 * @example
 * sanitizeCommand('export GITHUB_TOKEN=ghp_123456')
 * // Returns: 'export GITHUB_TOKEN=ghp_****456'
 */
export declare function sanitizeCommand(command: string): string;
/**
 * Create a sanitized logger for bash operations
 *
 * @param logger - Original logger
 * @returns Logger that automatically sanitizes all output
 */
export declare function createBashLogger(logger: any): {
    log: (message: string, ...args: any[]) => void;
    info: (message: string, ...args: any[]) => void;
    error: (message: string, error?: any) => void;
    warn: (message: string) => void;
    debug: (message: string) => void;
};
/**
 * Environment variable display helper
 *
 * Shows environment variables with credentials masked
 *
 * @param env - Environment object
 * @returns Formatted string safe for display
 */
export declare function displayEnvironment(env?: NodeJS.ProcessEnv): string;
//# sourceMappingURL=bash-sanitizer.d.ts.map