/**
 * Layer 2: Authentication Anti-Pattern Detection
 * Identifies weak or missing authentication/authorization patterns
 *
 * Key improvements:
 * - Respects global middleware protection (caps severity at info)
 * - Detects throwing auth helpers and suppresses redundant null checks
 * - Properly classifies public endpoints
 */
import type { Vulnerability } from '../types';
import type { ParsedFile } from '../utils/parsed-file';
import type { MiddlewareAuthConfig } from '../utils/middleware-detector';
import type { AuthHelperContext } from '../utils/auth-helper-detector';
import type { FileAuthImports } from '../utils/imported-auth-detector';
export interface AuthAntipatternOptions {
    middlewareConfig?: MiddlewareAuthConfig;
    authHelpers?: AuthHelperContext;
    fileAuthImports?: Map<string, FileAuthImports>;
    parsed?: ParsedFile;
}
export declare function detectAuthAntipatterns(content: string, filePath: string, options?: AuthAntipatternOptions): Vulnerability[];
//# sourceMappingURL=auth-antipatterns.d.ts.map