import { z } from 'zod'; import { Severity, LegacySeverityLevel } from '../severity.js'; export { SeverityLevel, legacySeverityLevelSchema, severityLevelSchema, severitySchema } from '../severity.js'; declare const factLocationSchema: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; endLine: z.ZodOptional; endColumn: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }>; type FactLocation = z.infer; declare const findingReplacePropValueFixSchema: z.ZodObject<{ kind: z.ZodLiteral<"replacePropValue">; title: z.ZodString; prop: z.ZodString; value: z.ZodUnknown; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }>; declare const findingReplaceStyleValueFixSchema: z.ZodObject<{ kind: z.ZodLiteral<"replaceStyleValue">; title: z.ZodString; property: z.ZodString; value: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }>; declare const findingReplaceImportFixSchema: z.ZodObject<{ kind: z.ZodLiteral<"replaceImport">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>; declare const findingReplaceComponentFixSchema: z.ZodObject<{ kind: z.ZodLiteral<"replaceComponent">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>; declare const findingReplaceClassTokenFixSchema: z.ZodObject<{ kind: z.ZodLiteral<"replaceClassToken">; title: z.ZodString; from: z.ZodString; to: z.ZodNullable; utility: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }>; declare const findingFixSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{ kind: z.ZodLiteral<"replacePropValue">; title: z.ZodString; prop: z.ZodString; value: z.ZodUnknown; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceStyleValue">; title: z.ZodString; property: z.ZodString; value: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceImport">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceComponent">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceClassToken">; title: z.ZodString; from: z.ZodString; to: z.ZodNullable; utility: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }>]>; type FindingFix = z.infer; type FindingReplacePropValueFix = z.infer; type FindingReplaceStyleValueFix = z.infer; type FindingReplaceImportFix = z.infer; type FindingReplaceComponentFix = z.infer; type FindingReplaceClassTokenFix = z.infer; interface FactEvidence { factId: string; fact: { kind: string; location?: FactLocation; }; } declare const factEvidenceSchema: z.ZodType; declare const findingSchema: z.ZodObject<{ ruleId: z.ZodString; ruleVersion: z.ZodString; severity: z.ZodEnum<["critical", "serious", "moderate", "minor"]>; level: z.ZodEnum<["error", "warn"]>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; fingerprint: z.ZodString; location: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; endLine: z.ZodOptional; endColumn: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }>; evidence: z.ZodArray, "many">; fix: z.ZodOptional; title: z.ZodString; prop: z.ZodString; value: z.ZodUnknown; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceStyleValue">; title: z.ZodString; property: z.ZodString; value: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceImport">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceComponent">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceClassToken">; title: z.ZodString; from: z.ZodString; to: z.ZodNullable; utility: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }>]>>; attributes: z.ZodOptional>; /** * Product area this finding's file resolved to (topology layer). Optional — * absent when the repo has no `topology` config. See `topology/resolve-area`. */ area: z.ZodOptional; owners: z.ZodArray; matchedGlob: z.ZodString; }, "strip", z.ZodTypeAny, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }>>; }, "strip", z.ZodTypeAny, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }>; type Finding = z.infer; declare const violationSchema: z.ZodObject<{ nodeId: z.ZodString; nodeType: z.ZodString; rule: z.ZodString; severity: z.ZodEnum<["critical", "serious", "moderate", "minor"]>; level: z.ZodOptional>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; path: z.ZodOptional; suggestion: z.ZodOptional; prop: z.ZodOptional; filePath: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; rawValue: z.ZodOptional; extra: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }, { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }>; type Violation = z.infer; declare const fixSchema: z.ZodObject<{ nodeId: z.ZodString; prop: z.ZodOptional; action: z.ZodEnum<["remove", "replace", "add"]>; value: z.ZodOptional; description: z.ZodString; }, "strip", z.ZodTypeAny, { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }, { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }>; type Fix = z.infer; declare const validatorResultSchema: z.ZodObject<{ validator: z.ZodString; severity: z.ZodEnum<["critical", "serious", "moderate", "minor"]>; passed: z.ZodBoolean; violations: z.ZodArray; level: z.ZodOptional>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; path: z.ZodOptional; suggestion: z.ZodOptional; prop: z.ZodOptional; filePath: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; rawValue: z.ZodOptional; extra: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }, { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }>, "many">; findings: z.ZodOptional; level: z.ZodEnum<["error", "warn"]>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; fingerprint: z.ZodString; location: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; endLine: z.ZodOptional; endColumn: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }>; evidence: z.ZodArray, "many">; fix: z.ZodOptional; title: z.ZodString; prop: z.ZodString; value: z.ZodUnknown; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceStyleValue">; title: z.ZodString; property: z.ZodString; value: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceImport">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceComponent">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceClassToken">; title: z.ZodString; from: z.ZodString; to: z.ZodNullable; utility: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }>]>>; attributes: z.ZodOptional>; /** * Product area this finding's file resolved to (topology layer). Optional — * absent when the repo has no `topology` config. See `topology/resolve-area`. */ area: z.ZodOptional; owners: z.ZodArray; matchedGlob: z.ZodString; }, "strip", z.ZodTypeAny, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }>>; }, "strip", z.ZodTypeAny, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }>, "many">>; suggestions: z.ZodOptional; action: z.ZodEnum<["remove", "replace", "add"]>; value: z.ZodOptional; description: z.ZodString; }, "strip", z.ZodTypeAny, { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }, { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { severity: "critical" | "serious" | "moderate" | "minor"; validator: string; passed: boolean; violations: { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }[]; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suggestions?: { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }[] | undefined; }, { severity: "critical" | "serious" | "moderate" | "minor"; validator: string; passed: boolean; violations: { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }[]; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suggestions?: { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }[] | undefined; }>; type ValidatorResult = z.infer; declare const governanceVerdictMetadataSchema: z.ZodObject<{ runner: z.ZodString; policyVersion: z.ZodOptional; duration: z.ZodNumber; nodeCount: z.ZodNumber; componentTypes: z.ZodArray; }, "strip", z.ZodTypeAny, { runner: string; duration: number; nodeCount: number; componentTypes: string[]; policyVersion?: string | undefined; }, { runner: string; duration: number; nodeCount: number; componentTypes: string[]; policyVersion?: string | undefined; }>; type GovernanceVerdictMetadata = z.infer; declare const governanceVerdictSchema: z.ZodObject<{ verdict: z.ZodOptional>; passed: z.ZodBoolean; score: z.ZodNumber; results: z.ZodArray; passed: z.ZodBoolean; violations: z.ZodArray; level: z.ZodOptional>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; path: z.ZodOptional; suggestion: z.ZodOptional; prop: z.ZodOptional; filePath: z.ZodOptional; line: z.ZodOptional; column: z.ZodOptional; rawValue: z.ZodOptional; extra: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }, { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }>, "many">; findings: z.ZodOptional; level: z.ZodEnum<["error", "warn"]>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; fingerprint: z.ZodString; location: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; endLine: z.ZodOptional; endColumn: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }>; evidence: z.ZodArray, "many">; fix: z.ZodOptional; title: z.ZodString; prop: z.ZodString; value: z.ZodUnknown; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceStyleValue">; title: z.ZodString; property: z.ZodString; value: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceImport">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceComponent">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceClassToken">; title: z.ZodString; from: z.ZodString; to: z.ZodNullable; utility: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }>]>>; attributes: z.ZodOptional>; /** * Product area this finding's file resolved to (topology layer). Optional — * absent when the repo has no `topology` config. See `topology/resolve-area`. */ area: z.ZodOptional; owners: z.ZodArray; matchedGlob: z.ZodString; }, "strip", z.ZodTypeAny, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }>>; }, "strip", z.ZodTypeAny, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }>, "many">>; suggestions: z.ZodOptional; action: z.ZodEnum<["remove", "replace", "add"]>; value: z.ZodOptional; description: z.ZodString; }, "strip", z.ZodTypeAny, { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }, { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { severity: "critical" | "serious" | "moderate" | "minor"; validator: string; passed: boolean; violations: { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }[]; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suggestions?: { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }[] | undefined; }, { severity: "critical" | "serious" | "moderate" | "minor"; validator: string; passed: boolean; violations: { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }[]; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suggestions?: { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }[] | undefined; }>, "many">; metadata: z.ZodObject<{ runner: z.ZodString; policyVersion: z.ZodOptional; duration: z.ZodNumber; nodeCount: z.ZodNumber; componentTypes: z.ZodArray; }, "strip", z.ZodTypeAny, { runner: string; duration: number; nodeCount: number; componentTypes: string[]; policyVersion?: string | undefined; }, { runner: string; duration: number; nodeCount: number; componentTypes: string[]; policyVersion?: string | undefined; }>; }, "strip", z.ZodTypeAny, { passed: boolean; score: number; results: { severity: "critical" | "serious" | "moderate" | "minor"; validator: string; passed: boolean; violations: { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }[]; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suggestions?: { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }[] | undefined; }[]; metadata: { runner: string; duration: number; nodeCount: number; componentTypes: string[]; policyVersion?: string | undefined; }; verdict?: "pass" | "fail" | "warn" | undefined; }, { passed: boolean; score: number; results: { severity: "critical" | "serious" | "moderate" | "minor"; validator: string; passed: boolean; violations: { message: string; severity: "critical" | "serious" | "moderate" | "minor"; nodeId: string; nodeType: string; rule: string; code?: string | undefined; path?: string | undefined; line?: number | undefined; column?: number | undefined; prop?: string | undefined; level?: "error" | "warn" | undefined; helpUrl?: string | undefined; suggestion?: string | undefined; filePath?: string | undefined; rawValue?: string | undefined; extra?: Record | undefined; }[]; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suggestions?: { nodeId: string; action: "remove" | "replace" | "add"; description: string; value?: unknown; prop?: string | undefined; }[] | undefined; }[]; metadata: { runner: string; duration: number; nodeCount: number; componentTypes: string[]; policyVersion?: string | undefined; }; verdict?: "pass" | "fail" | "warn" | undefined; }>; type GovernanceVerdict = z.infer; declare const suppressionDirectiveSchema: z.ZodObject<{ ruleId: z.ZodOptional; reason: z.ZodString; expiresAt: z.ZodOptional; expiresOn: z.ZodOptional; scope: z.ZodDefault>; code: z.ZodOptional; }, "strip", z.ZodTypeAny, { reason: string; scope: "file" | "line" | "block"; code?: string | undefined; ruleId?: string | undefined; expiresAt?: string | undefined; expiresOn?: string | undefined; }, { reason: string; code?: string | undefined; ruleId?: string | undefined; expiresAt?: string | undefined; expiresOn?: string | undefined; scope?: "file" | "line" | "block" | undefined; }>; type SuppressionDirective = z.infer; declare const agentPlanSchema: z.ZodObject<{ tool: z.ZodEnum<["design_system/list_primitives", "design_system/conform", "design_system/prove_compliant"]>; args: z.ZodRecord; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }>; declare const agentFindingSchema: z.ZodObject<{ code: z.ZodOptional; ruleId: z.ZodString; filePath: z.ZodString; line: z.ZodNumber; col: z.ZodNumber; severity: z.ZodEnum<["critical", "serious", "moderate", "minor"]>; level: z.ZodEnum<["error", "warn"]>; message: z.ZodString; evidence: z.ZodArray, "many">; plan: z.ZodObject<{ tool: z.ZodEnum<["design_system/list_primitives", "design_system/conform", "design_system/prove_compliant"]>; args: z.ZodRecord; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }>; }, "strip", z.ZodTypeAny, { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }, { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }>; declare const agentFormatSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"typestyle.agent.v1">; passed: z.ZodBoolean; score: z.ZodNumber; summary: z.ZodString; fix_first: z.ZodArray; ruleId: z.ZodString; filePath: z.ZodString; line: z.ZodNumber; col: z.ZodNumber; severity: z.ZodEnum<["critical", "serious", "moderate", "minor"]>; level: z.ZodEnum<["error", "warn"]>; message: z.ZodString; evidence: z.ZodArray, "many">; plan: z.ZodObject<{ tool: z.ZodEnum<["design_system/list_primitives", "design_system/conform", "design_system/prove_compliant"]>; args: z.ZodRecord; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }>; }, "strip", z.ZodTypeAny, { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }, { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }>, "many">; remaining: z.ZodArray; ruleId: z.ZodString; filePath: z.ZodString; line: z.ZodNumber; col: z.ZodNumber; severity: z.ZodEnum<["critical", "serious", "moderate", "minor"]>; level: z.ZodEnum<["error", "warn"]>; message: z.ZodString; evidence: z.ZodArray, "many">; plan: z.ZodObject<{ tool: z.ZodEnum<["design_system/list_primitives", "design_system/conform", "design_system/prove_compliant"]>; args: z.ZodRecord; confidence: z.ZodNumber; }, "strip", z.ZodTypeAny, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }, { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }>; }, "strip", z.ZodTypeAny, { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }, { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }>, "many">; suppression_template: z.ZodObject<{ directive: z.ZodString; requiredFields: z.ZodArray; example: z.ZodString; }, "strip", z.ZodTypeAny, { directive: string; requiredFields: string[]; example: string; }, { directive: string; requiredFields: string[]; example: string; }>; budget: z.ZodObject<{ iteration: z.ZodNumber; maxIterations: z.ZodNumber; scoreDelta: z.ZodNumber; }, "strip", z.ZodTypeAny, { iteration: number; maxIterations: number; scoreDelta: number; }, { iteration: number; maxIterations: number; scoreDelta: number; }>; findings: z.ZodOptional; level: z.ZodEnum<["error", "warn"]>; code: z.ZodOptional; helpUrl: z.ZodOptional; message: z.ZodString; fingerprint: z.ZodString; location: z.ZodObject<{ file: z.ZodString; line: z.ZodNumber; column: z.ZodNumber; endLine: z.ZodOptional; endColumn: z.ZodOptional; }, "strip", z.ZodTypeAny, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }, { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }>; evidence: z.ZodArray, "many">; fix: z.ZodOptional; title: z.ZodString; prop: z.ZodString; value: z.ZodUnknown; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }, { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceStyleValue">; title: z.ZodString; property: z.ZodString; value: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }, { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceImport">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceComponent">; title: z.ZodString; from: z.ZodString; to: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }, { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; }>, z.ZodObject<{ kind: z.ZodLiteral<"replaceClassToken">; title: z.ZodString; from: z.ZodString; to: z.ZodNullable; utility: z.ZodString; deterministic: z.ZodOptional; }, "strip", z.ZodTypeAny, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }, { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; }>]>>; attributes: z.ZodOptional>; /** * Product area this finding's file resolved to (topology layer). Optional — * absent when the repo has no `topology` config. See `topology/resolve-area`. */ area: z.ZodOptional; owners: z.ZodArray; matchedGlob: z.ZodString; }, "strip", z.ZodTypeAny, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }, { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; }>>; }, "strip", z.ZodTypeAny, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }, { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }>, "many">>; suppressions: z.ZodOptional; reason: z.ZodString; expiresAt: z.ZodOptional; expiresOn: z.ZodOptional; scope: z.ZodDefault>; code: z.ZodOptional; }, "strip", z.ZodTypeAny, { reason: string; scope: "file" | "line" | "block"; code?: string | undefined; ruleId?: string | undefined; expiresAt?: string | undefined; expiresOn?: string | undefined; }, { reason: string; code?: string | undefined; ruleId?: string | undefined; expiresAt?: string | undefined; expiresOn?: string | undefined; scope?: "file" | "line" | "block" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { passed: boolean; score: number; schemaVersion: "typestyle.agent.v1"; summary: string; fix_first: { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }[]; remaining: { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }[]; suppression_template: { directive: string; requiredFields: string[]; example: string; }; budget: { iteration: number; maxIterations: number; scoreDelta: number; }; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suppressions?: { reason: string; scope: "file" | "line" | "block"; code?: string | undefined; ruleId?: string | undefined; expiresAt?: string | undefined; expiresOn?: string | undefined; }[] | undefined; }, { passed: boolean; score: number; schemaVersion: "typestyle.agent.v1"; summary: string; fix_first: { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }[]; remaining: { message: string; line: number; ruleId: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; evidence: FactEvidence[]; filePath: string; col: number; plan: { tool: "design_system/list_primitives" | "design_system/conform" | "design_system/prove_compliant"; args: Record; confidence: number; }; code?: string | undefined; }[]; suppression_template: { directive: string; requiredFields: string[]; example: string; }; budget: { iteration: number; maxIterations: number; scoreDelta: number; }; findings?: { message: string; location: { file: string; line: number; column: number; endLine?: number | undefined; endColumn?: number | undefined; }; ruleId: string; ruleVersion: string; severity: "critical" | "serious" | "moderate" | "minor"; level: "error" | "warn"; fingerprint: string; evidence: FactEvidence[]; code?: string | undefined; helpUrl?: string | undefined; fix?: { kind: "replacePropValue"; title: string; prop: string; deterministic?: boolean | undefined; value?: unknown; } | { value: string; kind: "replaceStyleValue"; title: string; property: string; deterministic?: boolean | undefined; } | { kind: "replaceImport"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceComponent"; title: string; from: string; to: string; deterministic?: boolean | undefined; } | { kind: "replaceClassToken"; title: string; from: string; to: string | null; utility: string; deterministic?: boolean | undefined; } | undefined; attributes?: Record | undefined; area?: { areaId: string; areaName: string; criticality: "high" | "medium" | "low" | "revenue" | "regulated"; owners: string[]; matchedGlob: string; } | undefined; }[] | undefined; suppressions?: { reason: string; code?: string | undefined; ruleId?: string | undefined; expiresAt?: string | undefined; expiresOn?: string | undefined; scope?: "file" | "line" | "block" | undefined; }[] | undefined; }>; type AgentFormat = z.infer; declare function normalizeSeverity(severity: Severity | LegacySeverityLevel): Severity; declare function normalizeFinding(input: Omit & { level?: Finding["level"]; }): Finding; declare function normalizeViolation(input: Omit & { level?: Violation["level"]; }): Violation; export { type AgentFormat, type FactEvidence, type FactLocation, type Finding, type FindingFix, type FindingReplaceClassTokenFix, type FindingReplaceComponentFix, type FindingReplaceImportFix, type FindingReplacePropValueFix, type FindingReplaceStyleValueFix, type Fix, type GovernanceVerdict, type GovernanceVerdictMetadata, LegacySeverityLevel, Severity, type SuppressionDirective, type ValidatorResult, type Violation, agentFindingSchema, agentFormatSchema, agentPlanSchema, factEvidenceSchema, factLocationSchema, findingFixSchema, findingReplaceClassTokenFixSchema, findingReplaceComponentFixSchema, findingReplaceImportFixSchema, findingReplacePropValueFixSchema, findingReplaceStyleValueFixSchema, findingSchema, fixSchema, governanceVerdictMetadataSchema, governanceVerdictSchema, normalizeFinding, normalizeSeverity, normalizeViolation, suppressionDirectiveSchema, validatorResultSchema, violationSchema };