/** * API Contract Analysis * Parses OpenAPI/Swagger specs, GraphQL schemas, tRPC routers, * and Express/FastAPI route definitions. */ export interface ApiEndpoint { /** GET, POST, PUT, DELETE, QUERY, MUTATION, SUBSCRIPTION */ method: string; /** /api/users/:id or User.name */ path: string; file: string; line: number; parameters?: { name: string; in: string; type: string; required?: boolean; }[]; requestBody?: string; responseType?: string; description?: string; source: 'openapi' | 'graphql' | 'trpc' | 'express' | 'fastapi' | 'nestjs' | 'flask' | 'django' | 'rails' | 'sinatra' | 'laravel' | 'spring' | 'jaxrs' | 'gin' | 'echo' | 'fiber' | 'chi' | 'actix' | 'rocket' | 'axum' | 'aspnet' | 'koa' | 'fastify' | 'hapi'; } export interface ApiContractResult { endpoints: ApiEndpoint[]; totalEndpoints: number; sources: string[]; specFiles: string[]; summary: { get: number; post: number; put: number; delete: number; query: number; mutation: number; other: number; }; scannedPatterns: string[]; } /** * Main API contract analysis function. * @param cwd - The working directory to scan. * @returns The API contract analysis result. */ export declare function analyzeApiContracts(cwd: string): Promise; //# sourceMappingURL=api-contract.d.ts.map