/**
 * Intent Detector Utility
 * Detects the INTENT of code patterns, not just keywords
 *
 * This addresses false positives where:
 * - setState() is flagged as a redirect (it's React state, not navigation)
 * - Error codes like 'SAME_PASSWORD' are flagged as password exposure
 * - Signed URLs are flagged as token exposure
 * - React Hook Form's shouldValidate: false is flagged as bypass
 */
/**
 * Check if a line contains a React state setter (NOT a redirect)
 */
export declare function isReactStateSetter(line: string): boolean;
/**
 * Check if a line contains an actual redirect/navigation
 */
export declare function isActualRedirect(line: string): boolean;
/**
 * Determine if user input to this function is a security concern
 * State setters with user input are NOT redirects
 *
 * @param line - The line content
 * @returns 'state_setter' | 'redirect' | 'unknown'
 */
export declare function classifyNavigationIntent(line: string): 'state_setter' | 'redirect' | 'unknown';
/**
 * Check if a string in an error is a CODE (like 'SAME_PASSWORD')
 * vs an actual VALUE that might expose data
 */
export declare function isErrorCodeString(line: string): boolean;
/**
 * Check if an error message might contain actual password/secret value
 */
export declare function hasPasswordValueInError(line: string): boolean;
/**
 * Check if "password" in error message is actually an error code/type
 */
export declare function isPasswordErrorCode(line: string): boolean;
/**
 * Check if a URL pattern is an intentional signed/presigned URL
 * These are FEATURES, not vulnerabilities
 */
export declare function isSignedUrlPattern(line: string): boolean;
/**
 * Check if shouldValidate: false is in a React Hook Form context
 * In RHF, this is a PERFORMANCE optimization, not a security bypass
 */
export declare function isReactHookFormContext(content: string, lineNumber: number): boolean;
/**
 * Check if validation: false / validate: false is form library optimization
 */
export declare function isFormLibraryOptimization(line: string, content: string, lineNumber: number): boolean;
export interface IntentAnalysis {
    /** The detected intent */
    intent: 'security_concern' | 'safe_pattern' | 'unknown';
    /** Reason for classification */
    reason: string;
    /** Suggested action */
    action: 'flag' | 'skip' | 'downgrade';
}
/**
 * Analyze a line for security intent based on multiple heuristics
 */
export declare function analyzeSecurityIntent(line: string, content: string, lineNumber: number, patternType: 'redirect' | 'password_error' | 'token_url' | 'validation_bypass'): IntentAnalysis;
//# sourceMappingURL=intent-detector.d.ts.map