import type { DiagnosticSeverity, WorkflowDiagnostic, WorkflowId } from "../types/index.js"; export declare const V2_WORKFLOW_DIAGNOSTIC_CONSUMERS: readonly ["workflow-library", "workflow-builder", "workflow-session-creation", "run-start", "runtime-failure"]; export type WorkflowDiagnosticConsumer = (typeof V2_WORKFLOW_DIAGNOSTIC_CONSUMERS)[number]; export type WorkflowDiagnosticGroupKind = "workflow" | "node" | "edge" | "schemaPath" | "statePath" | "registryRef" | "severity"; export type WorkflowDiagnosticGroup = { kind: WorkflowDiagnosticGroupKind; key: string; label: string; severity: DiagnosticSeverity; count: number; diagnostics: WorkflowDiagnostic[]; }; export type WorkflowDiagnosticGroups = Record; export type WorkflowDiagnosticReport = { diagnostics: WorkflowDiagnostic[]; groups: WorkflowDiagnosticGroups; consumers: WorkflowDiagnosticConsumer[]; hasErrors: boolean; generatedAt?: string; }; export type CreateWorkflowDiagnosticReportOptions = { workflowId?: WorkflowId; consumers?: WorkflowDiagnosticConsumer[]; generatedAt?: string; }; export declare function createWorkflowDiagnosticReport(inputDiagnostics: readonly WorkflowDiagnostic[], options?: CreateWorkflowDiagnosticReportOptions): WorkflowDiagnosticReport; //# sourceMappingURL=diagnostics.d.ts.map