/** * Trace Utility Functions */ import { Span } from '../../types/index.js'; /** * Format duration in human-readable format */ export declare function formatDuration(ms: number | null | undefined): string; /** * Extract key attributes based on span type */ export declare function getKeyAttributes(span: Span): Record; /** * Estimate token count from text (rough approximation) */ export declare function estimateTokens(text: string | object | null | undefined): number; /** * Truncate text with ellipsis */ export declare function truncateText(text: string, maxLength: number): string; /** * Format timestamp for display */ export declare function formatTimestamp(timestamp: string): string; /** * Format large numbers in compact notation: 999 → "999", 1200 → "1.2k", 1500000 → "1.5M" */ export declare function formatCompact(n: number): string; /** * Parse JSON safely */ export declare function safeParseJSON(str: string): object | string; //# sourceMappingURL=utils.d.ts.map