import { z } from "zod"; export type Severity = "low" | "medium" | "high" | "critical"; export declare const SeverityOrder: Record; export declare const DetectionRuleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodOptional; description: z.ZodString; severity: z.ZodEnum<["low", "medium", "high", "critical"]>; pattern: z.ZodType; keywords: z.ZodOptional>; minEntropy: z.ZodOptional; requiresEntropy: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; description: string; severity: "low" | "medium" | "high" | "critical"; pattern: RegExp; name?: string | undefined; keywords?: string[] | undefined; minEntropy?: number | undefined; requiresEntropy?: boolean | undefined; }, { id: string; description: string; severity: "low" | "medium" | "high" | "critical"; pattern: RegExp; name?: string | undefined; keywords?: string[] | undefined; minEntropy?: number | undefined; requiresEntropy?: boolean | undefined; }>; export type DetectionRule = z.infer; export declare const CustomRuleSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodDefault; severity: z.ZodDefault>; regex: z.ZodString; keywords: z.ZodOptional>; minEntropy: z.ZodOptional; requiresEntropy: z.ZodOptional; }, "strip", z.ZodTypeAny, { id: string; name: string; description: string; severity: "low" | "medium" | "high" | "critical"; regex: string; keywords?: string[] | undefined; minEntropy?: number | undefined; requiresEntropy?: boolean | undefined; }, { id: string; name: string; regex: string; description?: string | undefined; severity?: "low" | "medium" | "high" | "critical" | undefined; keywords?: string[] | undefined; minEntropy?: number | undefined; requiresEntropy?: boolean | undefined; }>; export type CustomRuleDefinition = z.infer; export interface Finding { ruleId: string; ruleName?: string; severity: Severity; file: string; line: number; column: number; maskedValue: string; rawSecret?: string; secretHash?: string; commit?: string; commitAuthor?: string; commitDate?: string; verified?: boolean; } export interface ScanOptions { path: string; severity?: Severity; json?: boolean; ignore?: string[]; verbose?: boolean; staged?: boolean; history?: boolean; since?: string; maxCommits?: number; maxFileSize?: string | number; rulesPath?: string; baselinePath?: string; allowlist?: string[]; maxDecodeDepth?: number; createBaseline?: boolean | string; scanAllExtensions?: boolean; verify?: boolean; onFileAction?: (filePath: string, status: "scanned" | "ignored" | "binary") => void; } export type ScoreTier = "Excellent" | "Good" | "Warning" | "Critical"; export interface ScoreReport { score: number; tier: ScoreTier; counts: Record; } export interface ScanResult { summary: { filesScanned: number; linesScanned: number; skippedFiles?: number; findings: number; suppressedFindings?: number; score: number; tier: ScoreTier; durationMs: number; commitsScanned?: number; }; findings: Finding[]; }