import type { TestAdapter } from './adapter.interface.js'; import type { NeutralScenario, GeneratedTest } from '../schemas/gap-analysis.schema.js'; import type { ApiSurface } from '../tools/repo/api-surface.js'; /** * TestAdapter implementation for API testing via supertest. * * `render` / `renderAll`: convert gap-analysis NeutralScenarios that carry * `api-call` steps into supertest specs. Used by the standard adapter pipeline. * * `scaffoldApiTests`: separate entry point for the repo-first API toolshed flow. * Accepts discovered endpoints (ApiSurface) and generates a ready-to-run * supertest test file — NOT URL-based. */ export declare class ApiAdapter implements TestAdapter { readonly adapterType = "api"; render(scenario: NeutralScenario): GeneratedTest; renderAll(scenarios: NeutralScenario[]): GeneratedTest[]; /** * Generate a supertest-based test file from discovered API endpoints. * This is the repo-first entry point — does NOT require a running URL. * * Endpoints are grouped into a single test file. Each endpoint gets one * `it` block that: * - Makes the correct HTTP method call * - Asserts status < 500 (smoke-level assertion, safely runnable against a live app) * - POST/PUT/PATCH endpoints include a TODO for request body * * The file is NOT associated with a NeutralScenario; it uses a fixed scenarioId. */ scaffoldApiTests(apiSurface: ApiSurface, options?: { appImportPath?: string; }): GeneratedTest; } //# sourceMappingURL=api-adapter.d.ts.map