signalk-parquet
Version:
Vessel data Parquet file archive with automated value and geospatial triggers. History API compliant with cloud backups and queries.
22 lines • 847 B
TypeScript
import { ServerAPI } from '@signalk/server-api';
/**
* Data type information for a SignalK path
*/
export interface PathTypeInfo {
dataType: 'numeric' | 'angular' | 'boolean' | 'string' | 'position' | 'enum' | 'unknown';
unit?: string;
enumValues?: string[];
description?: string;
rawMetadata?: Record<string, unknown>;
}
/**
* Detect the data type of a SignalK path based on metadata
* Based on schema-service.ts metadata lookup pattern
*/
export declare function detectPathType(path: string, app?: ServerAPI): Promise<PathTypeInfo>;
/**
* Sample the actual data to help determine type when metadata is unavailable
* This is a fallback mechanism
*/
export declare function detectPathTypeFromSample(path: string, sampleValue: unknown, app?: ServerAPI): Promise<PathTypeInfo>;
//# sourceMappingURL=type-detector.d.ts.map