/** * Main client for the Kalshi JavaScript SDK. */ import { MarketService } from './services/MarketService'; import { TradeService } from './services/TradeService'; import { PortfolioService } from './services/PortfolioService'; import { ClientConfig } from './types'; export declare class KalshiClient { private static readonly PRODUCTION_URL; private static readonly DEMO_URL; readonly environment: 'production' | 'demo'; readonly baseUrl: string; private readonly authManager; private readonly _markets; private readonly _trading; private readonly _portfolio; /** * Initialize the Kalshi client. * * @example * ```typescript * const client = new KalshiClient({ * apiKeyId: 'your-api-key-id', * privateKey: 'your-private-key-string', * environment: 'demo' * }); * * // Get open markets * const markets = await client.markets.getMarkets({ status: 'open' }); * * // Place an order * const order = await client.trading.placeOrder({ * ticker: 'EXAMPLE-24-T1', * side: 'yes', * action: 'buy', * count: 10, * price: 0.55 * }); * * // Check balance * const balance = await client.portfolio.getBalance(); * console.log(`Available balance: $${balance.availableBalanceDollars.toFixed(2)}`); * ``` */ constructor(config: ClientConfig); /** * Access market-related functionality. */ get markets(): MarketService; /** * Access trading-related functionality. */ get trading(): TradeService; /** * Access portfolio-related functionality. */ get portfolio(): PortfolioService; /** * Test the connection to the Kalshi API. */ testConnection(): Promise; /** * Get information about the current API configuration. */ getApiInfo(): Record; }