/**
 * JSON.parse Detection
 *
 * Source-aware detection of JSON.parse usage with severity classification
 * based on the data source and error handling context.
 */
import type { Vulnerability } from '../../../shared/types';
/**
 * JSON.parse source classification
 * Determines if the input is user-controlled or internal data
 */
export type JSONParseSource = 'user_input' | 'local_storage' | 'database' | 'config' | 'migration' | 'internal' | 'test_fixture' | 'ui_state' | 'unknown';
/**
 * Check if file path indicates a low-risk context for JSON.parse
 */
export declare function isLowRiskJSONParseFile(filePath: string): JSONParseSource | null;
/**
 * Check if JSON.parse is parsing a trusted SDK response
 * These are well-defined responses from known APIs and are safe to parse
 */
export declare function isTrustedSDKResponse(lineContent: string, content: string): boolean;
/**
 * Classify the source of data being passed to JSON.parse
 */
export declare function classifyJSONParseSource(lineContent: string, filePath: string): JSONParseSource;
/**
 * Detect JSON.parse usage with source-aware severity
 * Much smarter than simple pattern matching - considers try/catch and data source
 */
export declare function detectJSONParseSafe(content: string, filePath: string, isTestFile: boolean, vulnerabilities: Vulnerability[]): void;
//# sourceMappingURL=json-parse.d.ts.map