/** * Entropy-based secret detection * Uses Shannon entropy to detect high-entropy strings that may be secrets */ /** * Entropy analysis result */ export interface EntropyAnalysis { /** Shannon entropy in bits per character */ entropy: number; /** Is this a high-entropy string? */ isHighEntropy: boolean; /** Confidence score (0-100) */ confidence: number; /** Reason for the result */ reason: string; } /** * Calculate Shannon entropy of a string * @param str - String to analyze * @returns Entropy in bits per character */ export declare function calculateEntropy(str: string): number; /** * Check if string matches a whitelisted high-entropy pattern * @param str - String to check * @returns True if whitelisted */ export declare function isWhitelistedHighEntropy(str: string): boolean; /** * Analyze entropy of a string to determine if it's likely a secret * @param str - String to analyze * @returns Entropy analysis result */ export declare function analyzeEntropy(str: string): EntropyAnalysis; //# sourceMappingURL=entropy.d.ts.map