/** * Frontend Contract Validator * Validates frontend API usage against defined contracts * Detects authentication mismatches, missing error handling, and contract violations */ import { APIContract, ContractValidationResult, FrontendValidationReport } from '../types/api-contracts'; export declare class FrontendContractValidator { /** * Analyze frontend code for API contract violations */ static validateFrontendUsage(projectPath: string, contracts: APIContract[]): Promise; /** * Find API usages in frontend code */ private static findAPIUsages; /** * Check if endpoints match (handles wildcards and parameters) */ private static endpointMatches; /** * Validate single API usage against contract */ private static validateUsage; /** * Generate authentication fix suggestion */ private static generateAuthFix; /** * Generate 401 error handling fix */ private static generate401HandlingFix; /** * Generate general error handling fix */ private static generateErrorHandlingFix; /** * Generate role check fix suggestion */ private static generateRoleCheckFix; /** * Generate validation report */ static generateReport(projectPath: string, result: ContractValidationResult): FrontendValidationReport; } //# sourceMappingURL=frontend-contract-validator.d.ts.map