/** * Compute Shannon entropy of a string (bits per character). * * High-entropy strings (≥ 4.5 bits/char) with sufficient length are * characteristic of randomly-generated secrets (API keys, JWT tokens, * random passwords). Normal English text sits around 3.5-4.0 bits/char. * * Reference: https://en.wikipedia.org/wiki/Entropy_(information_theory) */ export declare function shannonEntropy(str: string): number; export declare function looksLikeSecret(value: string): boolean; export interface SecretScanResult { hasSecrets: boolean; detectedKeys: string[]; } export declare function scanEnvironmentForSecrets(env: NodeJS.ProcessEnv): SecretScanResult; export declare function buildEnvironmentSchema(env: NodeJS.ProcessEnv, detectedSecrets: string[]): { required: string[]; optional: string[]; secrets: string[]; captured_env_keys: string[]; }; export declare function sanitizePII(text: string): string; //# sourceMappingURL=secrets.d.ts.map