/** * GEF Chart Helpers * * Optional utilities for detecting chart axes and formatting column metadata for visualization. * This is presentation logic separate from the core parser - consumers can use their own * chart detection logic or copy this file to their application. */ import { type ColumnInfo, type ZID } from "./gef-schemas"; import type { Row } from "./depth-correction"; export declare const DEPTH_KEYWORDS: string[]; export declare const CPT_QUANTITY: { readonly LENGTH: 1; readonly CONE_RESISTANCE: 2; readonly FRICTION_RESISTANCE: 3; readonly FRICTION_NUMBER: 4; readonly PORE_PRESSURE_U2: 6; readonly INCLINATION: 8; readonly CORRECTED_DEPTH: 11; readonly CORRECTED_CONE_RESISTANCE: 13; }; /** * Find column by quantity number */ export declare function findColumnByQuantity(columns: Array, quantityNumber: number): ColumnInfo | undefined; /** * Extract unit code from verbose unit strings like "MPa (megaPascal)" -> "MPa" */ export declare function getUnitCode(unit: string): string; /** * Get standardized display name for a column based on its quantity number */ export declare function getColumnDisplayName(col: ColumnInfo): string; export interface ChartColumn { key: string; unit: string; name: string; } export interface ChartAxes { yAxis: ChartColumn | null; xAxis: ChartColumn | null; availableColumns: Array; yAxisOptions: Array; } /** * Detect sensible default chart axes for CPT data visualization * * This is opinionated presentation logic - consumers may prefer to implement * their own axis selection based on their specific use case. * * Default behavior: * - Y-axis: Penetration length (quantity 1), fallback to corrected depth (11) * - X-axis: Cone resistance (quantity 2), fallback to corrected cone (13) or friction (4) * - Also provides all available columns and Y-axis alternatives */ export declare function detectChartAxes(columnInfo: Array, data: Array, zid: ZID | undefined): ChartAxes; //# sourceMappingURL=gef-chart-helpers.d.ts.map