/** * Type inference utilities for TONL */ import type { TONLTypeHint } from "./types.js"; /** * Infer the TONL type hint for a JavaScript value */ export declare function inferPrimitiveType(value: unknown): TONLTypeHint; /** * Coerce a string value to the specified TONL type */ export declare function coerceValue(value: string, type: TONLTypeHint): any; /** * Check if an array is uniform (all objects have same keys) */ export declare function isUniformObjectArray(arr: any[]): boolean; /** * Get stable column order for uniform object array */ export declare function getUniformColumns(arr: any[]): string[]; /** * Check if an array is semi-uniform (objects share a significant percentage of keys) * This allows for optional fields while still using tabular format */ export declare function isSemiUniformObjectArray(arr: any[], threshold?: number): boolean; /** * Get all columns (union of all keys) from an array of objects * Returns keys in sorted order for stability */ export declare function getAllColumns(arr: any[]): string[]; /** * Try to infer type from string value (when no type hint provided) */ export declare function inferTypeFromString(value: string): TONLTypeHint; //# sourceMappingURL=infer.d.ts.map