import type { CommandRunner } from "../../../agent-spawn/dist/index.js"; export type TruffleHogFindingStatus = "verified" | "unverified" | "unknown"; export interface TruffleHogFinding { detector: string; filePath: string; lineNumber: number; status: TruffleHogFindingStatus; } interface EnvReader { get(key: string): string | undefined; } interface TruffleHogFileSystem { appendFile(path: string, data: string, encoding: BufferEncoding): Promise; lstat(path: string): Promise<{ isSymbolicLink(): boolean; }>; readFile(path: string, encoding: BufferEncoding): Promise; rename(oldPath: string, newPath: string): Promise; rm(path: string, options: { force: boolean; }): Promise; writeFile(path: string, data: string, options: { encoding: BufferEncoding; flag?: string; }): Promise; } export type TruffleHogPrScanCommand = "scan-for-secrets" | "report-advisory-result" | "clear-stale-advisory-result"; export declare function runTruffleHogPrScanCommand(command: TruffleHogPrScanCommand, env: EnvReader, options?: { cwd?: string; runner?: CommandRunner; dryRun?: boolean; fs?: TruffleHogFileSystem; }): Promise; export declare function parseTruffleHogFindings(jsonl: string): TruffleHogFinding[]; export declare function uniqueTruffleHogFindings(findings: TruffleHogFinding[]): TruffleHogFinding[]; export declare function renderTruffleHogFindingsTable(findings: TruffleHogFinding[], options: { repository: string; headSha: string; maxFindings: number; }): string; export declare function renderTruffleHogComment(findings: TruffleHogFinding[], options: { repository: string; headSha: string; maxFindings: number; }): string; export {};