import { RecordObject, ToolResult } from '../types.js'; /** * Format data as JSON tool result */ export declare function jsonResult(data: unknown): ToolResult; /** * Format error as tool result */ export declare function errorResult(message: string): ToolResult; /** * Build ODSQL WHERE clause from conditions */ export declare function buildWhere(conditions: Array): string | undefined; /** * Escape a string literal for ODSQL */ export declare function escapeOdSqlString(value: string): string; /** * Quote an ODSQL string literal */ export declare function quote(value: string): string; /** * Format date as YYYY-MM-DD */ export declare function formatDate(date: Date): string; /** * Get today's date as YYYY-MM-DD */ export declare function today(): string; /** * Calculate days between two dates */ export declare function daysBetween(date1: string, date2: string): number; /** * Pick the first defined value from a record */ export declare function pickValue(record: RecordObject, candidates: string[]): T | undefined; /** * Pick the first string-like value from a record */ export declare function pickString(record: RecordObject, candidates: string[]): string | undefined; /** * Pick the first numeric value from a record */ export declare function pickNumber(record: RecordObject, candidates: string[]): number | undefined; /** * Pick the first boolean-like value from a record */ export declare function pickBoolean(record: RecordObject, candidates: string[]): boolean | undefined; /** * Normalize a string for case-insensitive comparisons */ export declare function normalizeText(value: string): string; //# sourceMappingURL=helpers.d.ts.map