/** * Code Scanner - Finds AI API issues in source code * * Scans codebases for common AI API integration issues: * - Streaming problems (missing SSE headers, buffering) * - Retry/backoff issues (no exponential backoff, no cap) * - Timeout issues (no timeout set, defaults too low) * - Rate limit handling (no 429 handling) * - Cost issues (unbounded max_tokens) * - Traceability issues (no request IDs) */ export interface ScanIssue { type: 'streaming' | 'retry' | 'timeout' | '429' | 'cost' | 'traceability'; severity: 'error' | 'warning' | 'info'; file: string; line: number; message: string; suggestion?: string; canFixLocally: boolean; } export interface ScanResult { issues: ScanIssue[]; filesScanned: number; gatewayLayerIssues: ScanIssue[]; } /** * Scan a directory for AI API issues */ export declare function scanCodebase(targetDir: string): Promise; /** * Print scan results */ export declare function printScanResults(result: ScanResult): void; //# sourceMappingURL=scanner.d.ts.map