/** * Per spec §4.2 验收审计 — Stryker wrapper for TS mutation testing. * * Hard constraints: * H6 (CLI裁决): invokeStryker is injected; production wires it to * @stryker-mutator/core programmatic API. * DRY: production implementation lives in this file; tests mock the * invokeStryker injection point. * KISS: keep the public surface narrow — input, invoker, output. */ import type { MutationReport } from './types.js'; export interface StrykerRawResult { readonly mutantsTotal: number; readonly mutantsKilled: number; readonly mutantsSurvived: number; readonly mutantsTimeout: number; readonly perFile: ReadonlyArray<{ readonly file: string; readonly killRate: number; readonly survived: ReadonlyArray<{ line: number; mutation: string; survivedBecause: string; }>; }>; } export type StrykerInvoker = (opts: { project: string; testFiles: ReadonlyArray; }) => Promise; export interface RunMutationInput { readonly project: string; readonly testFiles: ReadonlyArray; readonly invokeStryker: StrykerInvoker; } export interface RunMutationOutput { readonly mutation: MutationReport; } export declare function runMutation(input: RunMutationInput): Promise;