/** * Additional utility functions for data processing and conversion * Useful when porting Python utilities to TypeScript */ /** * Async sleep function (similar to Python's asyncio.sleep) */ export declare function sleep(ms: number): Promise; /** * Retry function with exponential backoff */ export declare function retry(fn: () => Promise, maxAttempts?: number, baseDelay?: number): Promise; /** * Deep clone utility (useful for data manipulation) */ export declare function deepClone(obj: T): T; /** * Chunk array into smaller arrays (similar to Python's list slicing) */ export declare function chunk(array: T[], size: number): T[][]; /** * Create a range of numbers (similar to Python's range()) */ export declare function range(start: number, stop?: number, step?: number): number[]; /** * Check if value is defined (not null or undefined) */ export declare function isDefined(value: T | null | undefined): value is T; /** * Custom number parser for ID fields - converts all integers to BigInt */ export declare function parseIdSafely(value: string): bigint | number; /** * Parse and validate number - throws error if number cannot be safely represented */ export declare function parseAndValidateNumber(value: string): number; /** * Safe JSON parse with lossless-json for large integer handling */ export declare function safeJsonParseWithReviver(jsonString: string): any; /** * Convert ID value to string for API compatibility */ export declare function idToString(id: bigint | number | string): string; /** * Convert any value to bigint for precise numeric operations */ export declare function idToBigInt(id: bigint | number | string): bigint; /** * Convert input to SafeId (bigint only) */ export declare function toSafeId(id: number | string | bigint): bigint; /** * Safe JSON parse with default value and large integer handling */ export declare function safeJsonParse(json: string, defaultValue: T): T; //# sourceMappingURL=index.d.ts.map