/** * Contract Scanner Service * * Scans backend and frontend files to detect API contracts * and identify mismatches between what backend returns and * what frontend expects. */ import { ContractStore, type Contract } from 'driftdetect-core'; import { type ExtractedEndpoint, type ExtractedApiCall } from 'driftdetect-detectors'; export interface ContractScannerConfig { rootDir: string; verbose?: boolean; } export interface ContractScanResult { contracts: Contract[]; unmatchedBackend: ExtractedEndpoint[]; unmatchedFrontend: ExtractedApiCall[]; stats: { backendEndpoints: number; frontendCalls: number; matchedContracts: number; mismatches: number; }; duration: number; } export declare class ContractScanner { private config; private store; constructor(config: ContractScannerConfig); initialize(): Promise; scanFiles(files: string[]): Promise; getStore(): ContractStore; } export declare function createContractScanner(config: ContractScannerConfig): ContractScanner; //# sourceMappingURL=contract-scanner.d.ts.map