/** * Severity levels for detected secrets */ export type SecretSeverity = 'high' | 'medium' | 'low'; /** * Represents a secret finding in the source code. */ export type SecretFinding = { file: string; line: number; kind: 'pattern' | 'entropy'; message: string; snippet: string; severity: SecretSeverity; }; export declare const SUSPICIOUS_KEYS: RegExp; export declare const PROVIDER_PATTERNS: RegExp[]; /** * Checks if a line has an ignore comment * fx: // dotenv-diff-ignore or /* dotenv-diff-ignore *\/ or * @param line - The line to check * @returns True if the line should be ignored */ export declare function hasIgnoreComment(line: string): boolean; /** * Detects secrets in the source code of a file. * @param file - The file path to check. * @param source - The source code to scan for secrets. * @returns An array of secret findings. */ export declare function detectSecretsInSource(file: string, source: string, opts?: { ignoreUrls?: string[]; }): SecretFinding[]; //# sourceMappingURL=secretDetectors.d.ts.map