/** * createSignalFromViolation โ€” the generic identity-stamping signal factory * (north-star ยง5.9, release 2.13.0). * * Generalizes fitness's `violationToSignal`: a tool hands a flat violation * (`message`, author `severity`, location, optional suggestion) plus its * `toolSource` + rule `slug`, and the factory STAMPS the `Signal` identity โ€” * `source`, `ruleId`, and the wire `severity` (via {@link SeverityPolicy}) โ€” so an * author never retypes fingerprint-relevant identity. Output is byte-identical to * the per-tool hand-mapping it replaces. */ import { type AuthorSeverity } from '../lib/severity-policy.js'; import { type Signal } from '../types/signal.js'; /** A flat violation: a message at a location with an author-level severity. */ export interface ViolationInput { readonly message: string; readonly severity: AuthorSeverity; readonly suggestion?: string; readonly file?: string; readonly line?: number; readonly column?: number; } /** * Build a {@link Signal} from a violation, stamping `source`/`ruleId` from the * tool + slug and the wire `severity` from the policy. `category` defaults to the * neutral `quality` (via `createSignal`); the location rides on `code`. */ export declare function createSignalFromViolation(toolSource: string, slug: string, violation: ViolationInput): Signal; //# sourceMappingURL=create-signal-from-violation.d.ts.map