/** * manifest load-test command * * Generates k6 or Artillery load test scripts from IR entities and commands. * Produces self-contained scripts with realistic data generation (faker.js * patterns), configurable ramp-up profiles, SLO thresholds, and optional * integration with the Manifest performance profiler. */ export type LoadTestFormat = 'k6' | 'artillery'; export interface RampStage { /** Duration string like "30s", "1m", "5m" */ duration: string; /** Target number of virtual users */ target: number; } export interface SloThreshold { /** Metric name (e.g. "p95", "p99", "error_rate", "http_req_duration") */ metric: string; /** Comparison operator */ op: '<' | '<=' | '>' | '>='; /** Threshold value (in ms for duration, fraction for error_rate) */ value: number; /** Abort the test when this threshold is crossed */ abortOnFail?: boolean; } export interface LoadTestOptions { /** Source .manifest or .ir.json file */ source?: string; /** Output directory for generated scripts */ output?: string; /** Script format */ format?: LoadTestFormat; /** Base URL for the API under test */ baseUrl?: string; /** Ramp-up profile string like "10s:5,30s:20,1m:50" */ rampUp?: string; /** SLO threshold string like "p95:500ms,p99:1s,error_rate:0.01" */ slo?: string; /** Only generate scripts for the named command(s) (repeatable) */ command?: string[]; /** Only generate scripts for the named entity (repeatable) */ entity?: string[]; /** Generate a profiler integration header comment */ profile?: boolean; /** Request timeout in ms (default: 30000) */ timeout?: number; /** Emit structured JSON to stdout instead of writing files */ json?: boolean; /** Preview load-test script paths without writing. */ dryRun?: boolean; } export interface LoadTestResult { format: LoadTestFormat; baseUrl: string; rampUp: RampStage[]; slo: SloThreshold[]; commands: string[]; entities: string[]; files: Record; profilerIntegration: boolean; } export declare function loadTestCommand(options?: LoadTestOptions): Promise; //# sourceMappingURL=load-test.d.ts.map