/** * Utility functions */ import type { Duration, SystemInfo } from '../types/index.js'; /** * Get the default models directory */ export declare function getDefaultModelsPath(): string; /** * Get the default host */ export declare function getDefaultHost(): string; /** * Parse duration string or number to milliseconds */ export declare function parseDuration(duration: Duration | undefined): number; /** * Format duration in milliseconds to human readable string */ export declare function formatDuration(ms: number): string; /** * Format bytes to human readable string */ export declare function formatBytes(bytes: number): string; /** * Get system information */ export declare function getSystemInfo(): SystemInfo; /** * Sleep for a given number of milliseconds */ export declare function sleep(ms: number): Promise; /** * Generate a random port number */ export declare function getRandomPort(): number; /** * Compute SHA256 hash of a buffer */ export declare function sha256(data: Buffer): Promise; /** * Check if a file exists */ export declare function fileExists(path: string): Promise; /** * Create directory if it doesn't exist */ export declare function ensureDir(path: string): Promise; /** * Deep merge objects */ export declare function deepMerge>(target: T, source: Partial): T; /** * Convert snake_case to camelCase */ export declare function snakeToCamel(str: string): string; /** * Convert camelCase to snake_case */ export declare function camelToSnake(str: string): string; /** * Convert object keys from snake_case to camelCase */ export declare function keysToCamel(obj: unknown): T; /** * Convert object keys from camelCase to snake_case */ export declare function keysToSnake(obj: unknown): T; //# sourceMappingURL=index.d.ts.map