/** * Secret key detection guardrail module. * * This module provides functions and configuration for detecting potential API keys, * secrets, and credentials in text. It includes entropy and diversity checks, pattern * recognition, and a guardrail check_fn for runtime enforcement. */ import { z } from 'zod'; import type { CheckFn } from '../types'; /** * Configuration for secret key and credential detection. */ export declare const SecretKeysConfig: z.ZodObject<{ threshold: z.ZodDefault>; custom_regex: z.ZodOptional>; }, z.core.$strip>; export type SecretKeysConfig = z.infer; /** * Context requirements for the secret keys guardrail. */ export declare const SecretKeysContext: z.ZodObject<{}, z.core.$strip>; export type SecretKeysContext = z.infer; /** * Async guardrail function for secret key and credential detection. * * Scans the input for likely secrets or credentials (e.g., API keys, tokens) * using entropy, diversity, and pattern rules. * * @param _ctx Guardrail context (unused). * @param data Input text to scan. * @param config Configuration for secret detection. * @returns GuardrailResult indicating if secrets were detected, with findings in info. */ export declare const secretKeysCheck: CheckFn; //# sourceMappingURL=secret-keys.d.ts.map