import type { DataPoint } from '@ya-modbus/driver-types'; /** * Metadata for JSON output */ export interface JSONMetadata { /** Driver package name */ driver?: string | undefined; /** Connection details */ connection?: { port?: string | undefined; host?: string | undefined; slaveId?: number | undefined; } | undefined; /** Performance metrics */ performance?: { responseTimeMs: number; operations: number; errors: number; } | undefined; } /** * Format data point results as JSON * * @param dataPoints - Data point definitions * @param values - Data point values (keyed by ID) * @param metadata - Additional metadata to include * @returns Formatted JSON string with 2-space indentation */ export declare function formatJSON(dataPoints: ReadonlyArray, values: Record, metadata: JSONMetadata): string; //# sourceMappingURL=json.d.ts.map