/** * Encoding mutation - obfuscates prompts using various encoding schemes * Tests if the model can be tricked by encoded payloads */ import { type CvssScore } from '../severity'; import type { Mutation } from './index'; export type EncodingType = 'base64' | 'rot13' | 'hex' | 'unicode' | 'mixed'; export declare class EncodingMutation implements Mutation { readonly name = "encoding"; readonly description = "Obfuscates prompts using Base64, ROT13, hex, or unicode encoding"; readonly severity: "high"; readonly cvssScore: CvssScore; private encodingType; constructor(encodingType?: EncodingType); mutate(prompt: string): string; /** * Select a random encoding type */ private randomEncodingType; /** * Base64 encode the prompt with instruction to decode */ private base64Encode; /** * ROT13 encode the prompt with instruction to decode */ private rot13Encode; /** * Hex encode the prompt with instruction to decode */ private hexEncode; /** * Unicode escape encode with instruction to decode */ private unicodeEncode; } //# sourceMappingURL=encoding.d.ts.map