import type { RuleDecision } from "../types.js"; export interface GitleaksConfig { decisions: RuleDecision[]; existingConfig?: string; } export interface GitleaksOutput { config: string; preCommitHook: string; } /** * Generate a .gitleaks.toml config and pre-commit hook snippet from rule decisions. * * - If no decision matches ruleId "R022" or ruleName "secret-detection", returns * empty strings (or existing config as-is when provided). * - Otherwise generates a .gitleaks.toml with an allowlist for test files, * node_modules, .git, and other common non-secret paths. * - Also generates a pre-commit hook snippet that runs `gitleaks protect --staged -v` * before lint-staged. * - If existingConfig is provided, merges the generated allowlist into it. */ export declare function generateGitleaksConfig(config: GitleaksConfig): GitleaksOutput; //# sourceMappingURL=gitleaks.d.ts.map