@aiquants/governance-react 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,288 @@
1
+ import React from "react";
2
+ import { ConfidentialityLevel, GovernedCapability } from "@aiquants/governance-core";
3
+ interface CitationProofProps {
4
+ algorithm: "SHA-256";
5
+ root_hash: string | null;
6
+ leaf_count: number;
7
+ is_fully_grounded: boolean;
8
+ as_of?: string | null;
9
+ signature?: string | null;
10
+ }
11
+ type CitationVerificationState = "verified" | "degraded" | "invalid" | "pending";
12
+ interface CitationProofBadgeProps {
13
+ proof: CitationProofProps;
14
+ verificationState?: CitationVerificationState;
15
+ onVerify?: () => void | Promise<void>;
16
+ isVerifying?: boolean;
17
+ }
18
+ declare function CitationProofBadge({ proof, verificationState, onVerify, isVerifying }: CitationProofBadgeProps): React.JSX.Element;
19
+ interface ClassificationRuleItem {
20
+ id: number;
21
+ rule_name: string;
22
+ priority: number;
23
+ uri_pattern?: string | null;
24
+ mime_pattern?: string | null;
25
+ target_domain_key: string | null;
26
+ assigned_department_id?: number | null;
27
+ is_active: boolean;
28
+ }
29
+ interface ClassificationRuleEditorProps {
30
+ consultedBy: string | null;
31
+ rules: ClassificationRuleItem[];
32
+ onReorderRules?: (orderedIds: number[]) => void | Promise<void>;
33
+ onUpdateRule?: (id: number, rule: Partial<ClassificationRuleItem>) => void | Promise<void>;
34
+ onDeleteRule?: (id: number) => void | Promise<void>;
35
+ onCreateRule?: (rule: Omit<ClassificationRuleItem, "id" | "priority">) => void | Promise<void>;
36
+ isSubmitting?: boolean;
37
+ }
38
+ declare function ClassificationRuleEditor({ rules, onReorderRules, onUpdateRule, onDeleteRule, onCreateRule, isSubmitting, consultedBy }: ClassificationRuleEditorProps): React.JSX.Element;
39
+ interface ConfidentialityPolicyRow {
40
+ confidentialityLevel: ConfidentialityLevel;
41
+ capability: GovernedCapability;
42
+ isEnabled: boolean;
43
+ allowCloudProvider: boolean;
44
+ promptKey: string | null;
45
+ }
46
+ interface ConfidentialityPolicyBoardProps {
47
+ policies: readonly ConfidentialityPolicyRow[];
48
+ promptKeys?: readonly string[];
49
+ onChangePolicy?: (row: ConfidentialityPolicyRow) => void | Promise<void>;
50
+ isUpdating?: boolean;
51
+ readOnly?: boolean;
52
+ }
53
+ declare function ConfidentialityPolicyBoard({ policies, promptKeys, onChangePolicy, isUpdating, readOnly }: ConfidentialityPolicyBoardProps): React.JSX.Element;
54
+ interface FeatureFlagBoardProps {
55
+ flags: Record<string, boolean>;
56
+ onToggleFlag?: (flagKey: string, newValue: boolean) => void | Promise<void>;
57
+ isCriticalFlag?: (flagKey: string) => boolean;
58
+ isUpdating?: boolean;
59
+ readOnly?: boolean;
60
+ }
61
+ declare function FeatureFlagBoard({ flags, onToggleFlag, isCriticalFlag, isUpdating, readOnly }: FeatureFlagBoardProps): React.JSX.Element;
62
+ interface SimulationScoreSet {
63
+ context_relevance: number;
64
+ groundedness: number;
65
+ answer_relevance: number;
66
+ mean_answer_chars: number;
67
+ mean_latency_ms: number;
68
+ }
69
+ interface SimulationVerdictFlip {
70
+ case_id: string;
71
+ intent_type: string;
72
+ before_passed: boolean;
73
+ after_passed: boolean;
74
+ }
75
+ interface SimulationRunResult {
76
+ simulation_id: string;
77
+ tenant_id: string;
78
+ evaluated_questions_count: number;
79
+ before: SimulationScoreSet;
80
+ after: SimulationScoreSet;
81
+ delta: SimulationScoreSet;
82
+ regressions: SimulationVerdictFlip[];
83
+ improvements: SimulationVerdictFlip[];
84
+ execution_time_ms: number;
85
+ }
86
+ interface SimulationRunInput {
87
+ readonly promptOverrides?: Readonly<Record<string, string>>;
88
+ readonly parameterOverrides?: Readonly<Record<string, string>>;
89
+ readonly featureFlagOverrides?: Readonly<Record<string, boolean>>;
90
+ readonly intentTypes?: readonly string[];
91
+ }
92
+ type SimulationOutcome = {
93
+ readonly ok: true;
94
+ readonly result: SimulationRunResult;
95
+ } | {
96
+ readonly ok: false;
97
+ readonly reason: string;
98
+ };
99
+ type SimulationRunner = (input: SimulationRunInput) => Promise<SimulationOutcome>;
100
+ interface GovernanceDryRunConsoleProps {
101
+ onSimulate?: SimulationRunner;
102
+ }
103
+ declare function GovernanceDryRunConsole({ onSimulate }: GovernanceDryRunConsoleProps): React.JSX.Element | null;
104
+ interface GraphNodeSummary {
105
+ canonicalId: string | null;
106
+ key: string;
107
+ displayName: string | null;
108
+ labels: readonly string[];
109
+ }
110
+ interface GraphNodeIndexPage {
111
+ label: string;
112
+ nodes: readonly GraphNodeSummary[];
113
+ totalCount: number;
114
+ pageIndex: number;
115
+ pageSize: number;
116
+ }
117
+ type GraphNodeIndexOutcome = {
118
+ readonly ok: true;
119
+ readonly page: GraphNodeIndexPage;
120
+ } | {
121
+ readonly ok: false;
122
+ readonly reason: string;
123
+ };
124
+ interface TopologyEdgeInput {
125
+ readonly from: string;
126
+ readonly to: string;
127
+ readonly type: string;
128
+ readonly count: number;
129
+ }
130
+ interface NodeLabelStat {
131
+ label: string;
132
+ count: number;
133
+ color?: string;
134
+ }
135
+ interface RelTypeStat {
136
+ type: string;
137
+ count: number;
138
+ }
139
+ interface GraphSchemaStats {
140
+ node_labels: NodeLabelStat[];
141
+ relationship_types: RelTypeStat[];
142
+ probe_failure: string | null;
143
+ adjacency: readonly TopologyEdgeInput[];
144
+ }
145
+ interface UnresolvedEntityItem {
146
+ id: string;
147
+ name: string;
148
+ category: string;
149
+ occurrences: number;
150
+ co_occurrences: number;
151
+ suggested_action: "merge" | "promote";
152
+ }
153
+ interface BitemporalTimeWindow {
154
+ valid_from: string;
155
+ valid_until: string;
156
+ current_simulated_time: string;
157
+ }
158
+ interface GraphTraversalInput {
159
+ readonly startNodeId: string;
160
+ readonly edgeTypes?: readonly string[];
161
+ readonly maxHops?: number;
162
+ }
163
+ type GraphTraversalOutcome = {
164
+ readonly ok: true;
165
+ readonly results: readonly Readonly<Record<string, unknown>>[];
166
+ readonly count: number;
167
+ } | {
168
+ readonly ok: false;
169
+ readonly reason: string;
170
+ };
171
+ type GraphTraversalRunner = (input: GraphTraversalInput) => Promise<GraphTraversalOutcome>;
172
+ interface KnowledgeGraphExplorerProps {
173
+ schema: GraphSchemaStats;
174
+ tenantId: string;
175
+ unresolvedEntities?: UnresolvedEntityItem[];
176
+ validTimeRange?: BitemporalTimeWindow;
177
+ onTimeTravelChange?: (timestamp: string) => void;
178
+ onResolveEntity?: (entityId: string, action: "merge" | "promote") => void | Promise<void>;
179
+ isResolving?: boolean;
180
+ onTraverse?: GraphTraversalRunner;
181
+ topologyMaxLabels: number;
182
+ nodeIndexPage?: GraphNodeIndexPage | null;
183
+ nodeIndexFailure?: string | null;
184
+ isNodeIndexLoading?: boolean;
185
+ onBrowseLabel?: (label: string, pageIndex: number) => void;
186
+ }
187
+ declare function computeDateFromPercent(pct: number, fromStr: string, untilStr: string): string;
188
+ declare function KnowledgeGraphExplorer({ schema, tenantId, unresolvedEntities, validTimeRange, onTimeTravelChange, onResolveEntity, isResolving, onTraverse, topologyMaxLabels, nodeIndexPage, nodeIndexFailure, isNodeIndexLoading, onBrowseLabel, }: KnowledgeGraphExplorerProps): React.JSX.Element;
189
+ interface PromptTemplateItem {
190
+ template_key: string;
191
+ name: string;
192
+ template_text: string;
193
+ model_name: string;
194
+ temperature: number;
195
+ max_output_tokens: number;
196
+ version: number;
197
+ description?: string;
198
+ response_schema?: Record<string, unknown> | string | null;
199
+ endpoint_base_url?: string | null;
200
+ }
201
+ declare const SCHEMA_PRESETS: Array<{
202
+ key: string;
203
+ name: string;
204
+ description: string;
205
+ schema: Record<string, unknown>;
206
+ }>;
207
+ interface PromptTemplateConsoleProps {
208
+ templates: PromptTemplateItem[];
209
+ onSaveTemplate?: (template: PromptTemplateItem) => void | Promise<void>;
210
+ isSaving?: boolean;
211
+ }
212
+ declare function PromptTemplateConsole({ templates, onSaveTemplate, isSaving }: PromptTemplateConsoleProps): React.JSX.Element;
213
+ interface SystemParameterItem {
214
+ key: string;
215
+ value: string | number | boolean;
216
+ category: string;
217
+ description: string;
218
+ data_type: "string" | "int" | "float" | "bool" | "json";
219
+ is_secret?: boolean;
220
+ }
221
+ interface SystemParameterTableProps {
222
+ parameters: SystemParameterItem[];
223
+ onSaveParameter?: (key: string, newValue: string | number | boolean) => void | Promise<void>;
224
+ onResetToDefault?: (key: string) => void | Promise<void>;
225
+ readOnly?: boolean;
226
+ isSaving?: boolean;
227
+ }
228
+ declare function parseParameterValue(rawVal: string | number | boolean, dataType: SystemParameterItem["data_type"]): string | number | boolean;
229
+ declare function SystemParameterTable({ parameters, onSaveParameter, onResetToDefault, readOnly, isSaving }: SystemParameterTableProps): React.JSX.Element;
230
+ interface TranscriptionTermRow {
231
+ id: number;
232
+ term: string;
233
+ reading: string | null;
234
+ boost: number | null;
235
+ domainKey: string | null;
236
+ isActive: boolean;
237
+ }
238
+ interface TranscriptionReferenceRow {
239
+ id: number;
240
+ fileUri: string;
241
+ domainKey: string | null;
242
+ isActive: boolean;
243
+ }
244
+ interface TranscriptionAdaptationBoardProps {
245
+ vocabulary: readonly TranscriptionTermRow[];
246
+ references: readonly TranscriptionReferenceRow[];
247
+ unresolvedUris?: readonly string[];
248
+ onSaveTerm?: (row: Omit<TranscriptionTermRow, "id"> & {
249
+ id: number | null;
250
+ }) => void | Promise<void>;
251
+ onSaveReference?: (row: Omit<TranscriptionReferenceRow, "id"> & {
252
+ id: number | null;
253
+ }) => void | Promise<void>;
254
+ isUpdating?: boolean;
255
+ readOnly?: boolean;
256
+ }
257
+ declare function parseBoost(raw: string): number | null | undefined;
258
+ declare function normalizeDomain(raw: string): string | null;
259
+ declare function TranscriptionAdaptationBoard({ vocabulary, references, unresolvedUris, onSaveTerm, onSaveReference, isUpdating, readOnly }: TranscriptionAdaptationBoardProps): React.JSX.Element;
260
+ type AuditedCount = number | null;
261
+ interface TriStoreAuditData {
262
+ total_files: number;
263
+ vector_indexed_count: AuditedCount;
264
+ expected_vector_count: AuditedCount;
265
+ graph_projected_count: AuditedCount;
266
+ expected_graph_count: AuditedCount;
267
+ orphan_vectors_count: AuditedCount;
268
+ orphan_nodes_count: AuditedCount;
269
+ unresolved_policy_conflicts: AuditedCount;
270
+ last_audit_time: string;
271
+ is_consistent: boolean | null;
272
+ probe_failures: readonly string[];
273
+ }
274
+ interface TriStoreReconcileResult {
275
+ purgedVectorPoints: number;
276
+ reprojectedChunks: number;
277
+ runId: string;
278
+ }
279
+ interface TriStoreIntegrityAuditProps {
280
+ auditData: TriStoreAuditData;
281
+ onTriggerReconcile?: () => void | Promise<void>;
282
+ isReconciling?: boolean;
283
+ reconcileResult?: TriStoreReconcileResult | null;
284
+ onRefresh?: () => void | Promise<void>;
285
+ isRefreshing?: boolean;
286
+ }
287
+ declare function TriStoreIntegrityAudit({ auditData, onTriggerReconcile, isReconciling, reconcileResult, onRefresh, isRefreshing }: TriStoreIntegrityAuditProps): React.JSX.Element;
288
+ export { type AuditedCount, type BitemporalTimeWindow, CitationProofBadge, type CitationProofBadgeProps, type CitationProofProps, type CitationVerificationState, ClassificationRuleEditor, type ClassificationRuleEditorProps, type ClassificationRuleItem, ConfidentialityPolicyBoard, type ConfidentialityPolicyBoardProps, type ConfidentialityPolicyRow, FeatureFlagBoard, type FeatureFlagBoardProps, GovernanceDryRunConsole, type GovernanceDryRunConsoleProps, type GraphNodeIndexOutcome, type GraphNodeIndexPage, type GraphNodeSummary, type GraphSchemaStats, type GraphTraversalInput, type GraphTraversalOutcome, type GraphTraversalRunner, KnowledgeGraphExplorer, type KnowledgeGraphExplorerProps, type NodeLabelStat, PromptTemplateConsole, type PromptTemplateConsoleProps, type PromptTemplateItem, type RelTypeStat, SCHEMA_PRESETS, type SimulationOutcome, type SimulationRunInput, type SimulationRunResult, type SimulationRunner, type SimulationScoreSet, type SimulationVerdictFlip, type SystemParameterItem, SystemParameterTable, type SystemParameterTableProps, TranscriptionAdaptationBoard, type TranscriptionAdaptationBoardProps, type TranscriptionReferenceRow, type TranscriptionTermRow, type TriStoreAuditData, TriStoreIntegrityAudit, type TriStoreIntegrityAuditProps, type TriStoreReconcileResult, type UnresolvedEntityItem, computeDateFromPercent, normalizeDomain, parseBoost, parseParameterValue };
@@ -0,0 +1,288 @@
1
+ import React from "react";
2
+ import { ConfidentialityLevel, GovernedCapability } from "@aiquants/governance-core";
3
+ interface CitationProofProps {
4
+ algorithm: "SHA-256";
5
+ root_hash: string | null;
6
+ leaf_count: number;
7
+ is_fully_grounded: boolean;
8
+ as_of?: string | null;
9
+ signature?: string | null;
10
+ }
11
+ type CitationVerificationState = "verified" | "degraded" | "invalid" | "pending";
12
+ interface CitationProofBadgeProps {
13
+ proof: CitationProofProps;
14
+ verificationState?: CitationVerificationState;
15
+ onVerify?: () => void | Promise<void>;
16
+ isVerifying?: boolean;
17
+ }
18
+ declare function CitationProofBadge({ proof, verificationState, onVerify, isVerifying }: CitationProofBadgeProps): React.JSX.Element;
19
+ interface ClassificationRuleItem {
20
+ id: number;
21
+ rule_name: string;
22
+ priority: number;
23
+ uri_pattern?: string | null;
24
+ mime_pattern?: string | null;
25
+ target_domain_key: string | null;
26
+ assigned_department_id?: number | null;
27
+ is_active: boolean;
28
+ }
29
+ interface ClassificationRuleEditorProps {
30
+ consultedBy: string | null;
31
+ rules: ClassificationRuleItem[];
32
+ onReorderRules?: (orderedIds: number[]) => void | Promise<void>;
33
+ onUpdateRule?: (id: number, rule: Partial<ClassificationRuleItem>) => void | Promise<void>;
34
+ onDeleteRule?: (id: number) => void | Promise<void>;
35
+ onCreateRule?: (rule: Omit<ClassificationRuleItem, "id" | "priority">) => void | Promise<void>;
36
+ isSubmitting?: boolean;
37
+ }
38
+ declare function ClassificationRuleEditor({ rules, onReorderRules, onUpdateRule, onDeleteRule, onCreateRule, isSubmitting, consultedBy }: ClassificationRuleEditorProps): React.JSX.Element;
39
+ interface ConfidentialityPolicyRow {
40
+ confidentialityLevel: ConfidentialityLevel;
41
+ capability: GovernedCapability;
42
+ isEnabled: boolean;
43
+ allowCloudProvider: boolean;
44
+ promptKey: string | null;
45
+ }
46
+ interface ConfidentialityPolicyBoardProps {
47
+ policies: readonly ConfidentialityPolicyRow[];
48
+ promptKeys?: readonly string[];
49
+ onChangePolicy?: (row: ConfidentialityPolicyRow) => void | Promise<void>;
50
+ isUpdating?: boolean;
51
+ readOnly?: boolean;
52
+ }
53
+ declare function ConfidentialityPolicyBoard({ policies, promptKeys, onChangePolicy, isUpdating, readOnly }: ConfidentialityPolicyBoardProps): React.JSX.Element;
54
+ interface FeatureFlagBoardProps {
55
+ flags: Record<string, boolean>;
56
+ onToggleFlag?: (flagKey: string, newValue: boolean) => void | Promise<void>;
57
+ isCriticalFlag?: (flagKey: string) => boolean;
58
+ isUpdating?: boolean;
59
+ readOnly?: boolean;
60
+ }
61
+ declare function FeatureFlagBoard({ flags, onToggleFlag, isCriticalFlag, isUpdating, readOnly }: FeatureFlagBoardProps): React.JSX.Element;
62
+ interface SimulationScoreSet {
63
+ context_relevance: number;
64
+ groundedness: number;
65
+ answer_relevance: number;
66
+ mean_answer_chars: number;
67
+ mean_latency_ms: number;
68
+ }
69
+ interface SimulationVerdictFlip {
70
+ case_id: string;
71
+ intent_type: string;
72
+ before_passed: boolean;
73
+ after_passed: boolean;
74
+ }
75
+ interface SimulationRunResult {
76
+ simulation_id: string;
77
+ tenant_id: string;
78
+ evaluated_questions_count: number;
79
+ before: SimulationScoreSet;
80
+ after: SimulationScoreSet;
81
+ delta: SimulationScoreSet;
82
+ regressions: SimulationVerdictFlip[];
83
+ improvements: SimulationVerdictFlip[];
84
+ execution_time_ms: number;
85
+ }
86
+ interface SimulationRunInput {
87
+ readonly promptOverrides?: Readonly<Record<string, string>>;
88
+ readonly parameterOverrides?: Readonly<Record<string, string>>;
89
+ readonly featureFlagOverrides?: Readonly<Record<string, boolean>>;
90
+ readonly intentTypes?: readonly string[];
91
+ }
92
+ type SimulationOutcome = {
93
+ readonly ok: true;
94
+ readonly result: SimulationRunResult;
95
+ } | {
96
+ readonly ok: false;
97
+ readonly reason: string;
98
+ };
99
+ type SimulationRunner = (input: SimulationRunInput) => Promise<SimulationOutcome>;
100
+ interface GovernanceDryRunConsoleProps {
101
+ onSimulate?: SimulationRunner;
102
+ }
103
+ declare function GovernanceDryRunConsole({ onSimulate }: GovernanceDryRunConsoleProps): React.JSX.Element | null;
104
+ interface GraphNodeSummary {
105
+ canonicalId: string | null;
106
+ key: string;
107
+ displayName: string | null;
108
+ labels: readonly string[];
109
+ }
110
+ interface GraphNodeIndexPage {
111
+ label: string;
112
+ nodes: readonly GraphNodeSummary[];
113
+ totalCount: number;
114
+ pageIndex: number;
115
+ pageSize: number;
116
+ }
117
+ type GraphNodeIndexOutcome = {
118
+ readonly ok: true;
119
+ readonly page: GraphNodeIndexPage;
120
+ } | {
121
+ readonly ok: false;
122
+ readonly reason: string;
123
+ };
124
+ interface TopologyEdgeInput {
125
+ readonly from: string;
126
+ readonly to: string;
127
+ readonly type: string;
128
+ readonly count: number;
129
+ }
130
+ interface NodeLabelStat {
131
+ label: string;
132
+ count: number;
133
+ color?: string;
134
+ }
135
+ interface RelTypeStat {
136
+ type: string;
137
+ count: number;
138
+ }
139
+ interface GraphSchemaStats {
140
+ node_labels: NodeLabelStat[];
141
+ relationship_types: RelTypeStat[];
142
+ probe_failure: string | null;
143
+ adjacency: readonly TopologyEdgeInput[];
144
+ }
145
+ interface UnresolvedEntityItem {
146
+ id: string;
147
+ name: string;
148
+ category: string;
149
+ occurrences: number;
150
+ co_occurrences: number;
151
+ suggested_action: "merge" | "promote";
152
+ }
153
+ interface BitemporalTimeWindow {
154
+ valid_from: string;
155
+ valid_until: string;
156
+ current_simulated_time: string;
157
+ }
158
+ interface GraphTraversalInput {
159
+ readonly startNodeId: string;
160
+ readonly edgeTypes?: readonly string[];
161
+ readonly maxHops?: number;
162
+ }
163
+ type GraphTraversalOutcome = {
164
+ readonly ok: true;
165
+ readonly results: readonly Readonly<Record<string, unknown>>[];
166
+ readonly count: number;
167
+ } | {
168
+ readonly ok: false;
169
+ readonly reason: string;
170
+ };
171
+ type GraphTraversalRunner = (input: GraphTraversalInput) => Promise<GraphTraversalOutcome>;
172
+ interface KnowledgeGraphExplorerProps {
173
+ schema: GraphSchemaStats;
174
+ tenantId: string;
175
+ unresolvedEntities?: UnresolvedEntityItem[];
176
+ validTimeRange?: BitemporalTimeWindow;
177
+ onTimeTravelChange?: (timestamp: string) => void;
178
+ onResolveEntity?: (entityId: string, action: "merge" | "promote") => void | Promise<void>;
179
+ isResolving?: boolean;
180
+ onTraverse?: GraphTraversalRunner;
181
+ topologyMaxLabels: number;
182
+ nodeIndexPage?: GraphNodeIndexPage | null;
183
+ nodeIndexFailure?: string | null;
184
+ isNodeIndexLoading?: boolean;
185
+ onBrowseLabel?: (label: string, pageIndex: number) => void;
186
+ }
187
+ declare function computeDateFromPercent(pct: number, fromStr: string, untilStr: string): string;
188
+ declare function KnowledgeGraphExplorer({ schema, tenantId, unresolvedEntities, validTimeRange, onTimeTravelChange, onResolveEntity, isResolving, onTraverse, topologyMaxLabels, nodeIndexPage, nodeIndexFailure, isNodeIndexLoading, onBrowseLabel, }: KnowledgeGraphExplorerProps): React.JSX.Element;
189
+ interface PromptTemplateItem {
190
+ template_key: string;
191
+ name: string;
192
+ template_text: string;
193
+ model_name: string;
194
+ temperature: number;
195
+ max_output_tokens: number;
196
+ version: number;
197
+ description?: string;
198
+ response_schema?: Record<string, unknown> | string | null;
199
+ endpoint_base_url?: string | null;
200
+ }
201
+ declare const SCHEMA_PRESETS: Array<{
202
+ key: string;
203
+ name: string;
204
+ description: string;
205
+ schema: Record<string, unknown>;
206
+ }>;
207
+ interface PromptTemplateConsoleProps {
208
+ templates: PromptTemplateItem[];
209
+ onSaveTemplate?: (template: PromptTemplateItem) => void | Promise<void>;
210
+ isSaving?: boolean;
211
+ }
212
+ declare function PromptTemplateConsole({ templates, onSaveTemplate, isSaving }: PromptTemplateConsoleProps): React.JSX.Element;
213
+ interface SystemParameterItem {
214
+ key: string;
215
+ value: string | number | boolean;
216
+ category: string;
217
+ description: string;
218
+ data_type: "string" | "int" | "float" | "bool" | "json";
219
+ is_secret?: boolean;
220
+ }
221
+ interface SystemParameterTableProps {
222
+ parameters: SystemParameterItem[];
223
+ onSaveParameter?: (key: string, newValue: string | number | boolean) => void | Promise<void>;
224
+ onResetToDefault?: (key: string) => void | Promise<void>;
225
+ readOnly?: boolean;
226
+ isSaving?: boolean;
227
+ }
228
+ declare function parseParameterValue(rawVal: string | number | boolean, dataType: SystemParameterItem["data_type"]): string | number | boolean;
229
+ declare function SystemParameterTable({ parameters, onSaveParameter, onResetToDefault, readOnly, isSaving }: SystemParameterTableProps): React.JSX.Element;
230
+ interface TranscriptionTermRow {
231
+ id: number;
232
+ term: string;
233
+ reading: string | null;
234
+ boost: number | null;
235
+ domainKey: string | null;
236
+ isActive: boolean;
237
+ }
238
+ interface TranscriptionReferenceRow {
239
+ id: number;
240
+ fileUri: string;
241
+ domainKey: string | null;
242
+ isActive: boolean;
243
+ }
244
+ interface TranscriptionAdaptationBoardProps {
245
+ vocabulary: readonly TranscriptionTermRow[];
246
+ references: readonly TranscriptionReferenceRow[];
247
+ unresolvedUris?: readonly string[];
248
+ onSaveTerm?: (row: Omit<TranscriptionTermRow, "id"> & {
249
+ id: number | null;
250
+ }) => void | Promise<void>;
251
+ onSaveReference?: (row: Omit<TranscriptionReferenceRow, "id"> & {
252
+ id: number | null;
253
+ }) => void | Promise<void>;
254
+ isUpdating?: boolean;
255
+ readOnly?: boolean;
256
+ }
257
+ declare function parseBoost(raw: string): number | null | undefined;
258
+ declare function normalizeDomain(raw: string): string | null;
259
+ declare function TranscriptionAdaptationBoard({ vocabulary, references, unresolvedUris, onSaveTerm, onSaveReference, isUpdating, readOnly }: TranscriptionAdaptationBoardProps): React.JSX.Element;
260
+ type AuditedCount = number | null;
261
+ interface TriStoreAuditData {
262
+ total_files: number;
263
+ vector_indexed_count: AuditedCount;
264
+ expected_vector_count: AuditedCount;
265
+ graph_projected_count: AuditedCount;
266
+ expected_graph_count: AuditedCount;
267
+ orphan_vectors_count: AuditedCount;
268
+ orphan_nodes_count: AuditedCount;
269
+ unresolved_policy_conflicts: AuditedCount;
270
+ last_audit_time: string;
271
+ is_consistent: boolean | null;
272
+ probe_failures: readonly string[];
273
+ }
274
+ interface TriStoreReconcileResult {
275
+ purgedVectorPoints: number;
276
+ reprojectedChunks: number;
277
+ runId: string;
278
+ }
279
+ interface TriStoreIntegrityAuditProps {
280
+ auditData: TriStoreAuditData;
281
+ onTriggerReconcile?: () => void | Promise<void>;
282
+ isReconciling?: boolean;
283
+ reconcileResult?: TriStoreReconcileResult | null;
284
+ onRefresh?: () => void | Promise<void>;
285
+ isRefreshing?: boolean;
286
+ }
287
+ declare function TriStoreIntegrityAudit({ auditData, onTriggerReconcile, isReconciling, reconcileResult, onRefresh, isRefreshing }: TriStoreIntegrityAuditProps): React.JSX.Element;
288
+ export { type AuditedCount, type BitemporalTimeWindow, CitationProofBadge, type CitationProofBadgeProps, type CitationProofProps, type CitationVerificationState, ClassificationRuleEditor, type ClassificationRuleEditorProps, type ClassificationRuleItem, ConfidentialityPolicyBoard, type ConfidentialityPolicyBoardProps, type ConfidentialityPolicyRow, FeatureFlagBoard, type FeatureFlagBoardProps, GovernanceDryRunConsole, type GovernanceDryRunConsoleProps, type GraphNodeIndexOutcome, type GraphNodeIndexPage, type GraphNodeSummary, type GraphSchemaStats, type GraphTraversalInput, type GraphTraversalOutcome, type GraphTraversalRunner, KnowledgeGraphExplorer, type KnowledgeGraphExplorerProps, type NodeLabelStat, PromptTemplateConsole, type PromptTemplateConsoleProps, type PromptTemplateItem, type RelTypeStat, SCHEMA_PRESETS, type SimulationOutcome, type SimulationRunInput, type SimulationRunResult, type SimulationRunner, type SimulationScoreSet, type SimulationVerdictFlip, type SystemParameterItem, SystemParameterTable, type SystemParameterTableProps, TranscriptionAdaptationBoard, type TranscriptionAdaptationBoardProps, type TranscriptionReferenceRow, type TranscriptionTermRow, type TriStoreAuditData, TriStoreIntegrityAudit, type TriStoreIntegrityAuditProps, type TriStoreReconcileResult, type UnresolvedEntityItem, computeDateFromPercent, normalizeDomain, parseBoost, parseParameterValue };