export interface StructureField { name: string; nodeId: string; dataType: 'Boolean' | 'Int16' | 'Int32' | 'Float'; readable: boolean; writable: boolean; unit: string } export interface OpcStructure { anlageId: string; id: string; version: number; name: string; connectionId: string; rootNodeId: string; direction: 'read' | 'write'; fields: StructureField[]; templateId?: string } export interface StructuresData { anlageId: string; structures: OpcStructure[]; templates?: { id: string; name: string; fields: Pick[] }[] } export interface StructureSnapshot { name: string; status: 'connecting' | 'online' | 'partial' | 'offline'; values: Record; fields: Record; updatedAt: string; error?: string } export interface StructureWriteResult { writtenAt: string; results: { field: string; good: boolean; status: string }[] } export interface ArrayImportInput { anlageId: string; connectionId: string; arrayNodeId: string; start: number; end: number; namePattern: string; templateName: string; direction: 'read' | 'write' } export interface ArrayImportRow { index: number; name: string; rootNodeId: string; status: 'ready' | 'exists' | 'error'; message: string; fields: StructureField[] } export interface ArrayImportPreview { token: string; rows: ArrayImportRow[]; ready: number; existing: number; errors: number; templateName: string }