/**
 * Imported Auth Detector
 *
 * Detects auth middleware/helpers imported from other files to avoid
 * false positives on routes that are actually protected via imports.
 *
 * Example: A route file that does `import { authMiddleware } from '@/lib/auth'`
 * and wraps handlers with it should not be flagged as "missing auth".
 */
import type { ScanFile } from '../types';
export interface ImportedAuthInfo {
    importPath: string;
    importedNames: string[];
    isAuthRelated: boolean;
}
export interface FileAuthImports {
    filePath: string;
    imports: ImportedAuthInfo[];
    usesImportedAuth: boolean;
}
/**
 * Extract all imports from a file's content
 */
export declare function extractImports(content: string): ImportedAuthInfo[];
/**
 * Check if imported auth is actually used to protect routes/handlers
 */
export declare function detectImportedAuthUsage(content: string, authImports: ImportedAuthInfo[]): boolean;
/**
 * Build a registry of files and their auth imports
 */
export declare function buildFileAuthImports(files: ScanFile[]): Map<string, FileAuthImports>;
/**
 * Check if a specific file uses imported auth protection
 */
export declare function fileUsesImportedAuth(filePath: string, registry: Map<string, FileAuthImports>): boolean;
//# sourceMappingURL=imported-auth-detector.d.ts.map