/** * Command type enumeration */ export type CommandType = 'k3s' | 'docker' | 'systemd' | 'unknown'; /** * Dangerous pattern interface */ export interface DangerousPattern { keywords: string[]; warning: string; } /** * Dangerous command patterns by command type */ export declare const DANGEROUS_PATTERNS: Record; /** * Parse a command into its components * @param command - The command string to parse * @returns Parsed command components */ export declare function parseCommand(command: string): { type: CommandType; operation: string; target: string; args: string[]; }; /** * Detect the type of command from its prefix * @param command - The command string to analyze * @returns The command type */ export declare function getCommandType(command: string): CommandType; /** * Detect if a command contains dangerous operations * @param command - The command string to analyze * @returns true if the command is dangerous, false otherwise */ export declare function detectDangerous(command: string): boolean; /** * Get warning message for a dangerous command * @param command - The command string to analyze * @returns Warning message if dangerous, undefined otherwise */ export declare function getWarning(command: string): string | undefined;