/** * Helper utilities for the Kalshi JavaScript SDK. */ import { OrderParams } from '../types'; /** * Validate and normalize a market ticker. */ export declare function validateTicker(ticker: string): string; /** * Format a price value for API requests. */ export declare function formatPrice(price: number): number; /** * Parse a timestamp string from the API. */ export declare function parseTimestamp(timestamp?: string): Date | undefined; /** * Validate and format order parameters. */ export declare function validateOrderParams(params: OrderParams): Required; /** * Generate a unique client order ID. */ export declare function generateClientOrderId(): string; /** * Sleep for a specified number of milliseconds. */ export declare function sleep(ms: number): Promise; /** * Retry a function with exponential backoff. */ export declare function retryWithBackoff(fn: () => Promise, maxRetries?: number, baseDelay?: number): Promise; /** * Convert cents to dollars. */ export declare function centsToDollars(cents: number): number; /** * Convert dollars to cents. */ export declare function dollarsToCents(dollars: number): number; /** * Format a number as currency. */ export declare function formatCurrency(amount: number, currency?: string): string; /** * Calculate percentage change. */ export declare function calculatePercentageChange(oldValue: number, newValue: number): number;