/** * WioEX Stream SDK - jQuery Plugin * * Provides jQuery-friendly wrapper around WioexStreamClient * * Usage: * ```javascript * $('#app').wioexStream({ * tokenEndpoint: '/api/stream/token', * stocks: ['AAPL', 'TSLA'], * debug: true * }); * ``` */ import { WioexStreamClient } from './WioexStreamClient'; import type { WioexStreamConfig } from './types'; interface JQueryWioexStreamConfig extends Omit { /** Stocks to subscribe to on initialization */ stocks?: string | string[]; /** Auto-connect on initialization (default: true) */ autoConnect?: boolean; } declare global { interface JQuery { wioexStream(config: JQueryWioexStreamConfig): JQuery; wioexStream(method: 'subscribe', stocks: string | string[]): JQuery; wioexStream(method: 'unsubscribe', stocks: string | string[]): JQuery; wioexStream(method: 'disconnect'): JQuery; wioexStream(method: 'getStats'): unknown; wioexStream(method: 'getClient'): WioexStreamClient | undefined; data(key: 'wioexStream'): WioexStreamClient | undefined; } } export default WioexStreamClient; //# sourceMappingURL=jquery-plugin.d.ts.map