import { BaseWorker } from "../base.worker"; import { HyperLiquidWsPublic } from "./hl.ws-public"; import { HyperLiquidWsPrivate } from "./hl.ws-private"; import { type Account, type ExchangeConfig, type FetchOHLCVParams, type Order, type PlaceOrderOpts, type PlacePositionStopOpts, type Position, type Timeframe, type UpdateOrderOpts } from "../../types/lib.types"; export declare class HyperLiquidWorker extends BaseWorker { publicWs: HyperLiquidWsPublic | null; privateWs: Record; start({ accounts, config, requestId, }: { accounts: Account[]; config: ExchangeConfig; requestId: string; }): Promise; fetchPublic(): Promise; addAccounts({ accounts, requestId, }: { accounts: Account[]; requestId?: string; }): Promise; removeAccount({ accountId, requestId, }: { accountId: string; requestId: string; }): Promise; fetchOHLCV({ requestId, params, }: { requestId: string; params: FetchOHLCVParams; }): Promise; listenOHLCV(opts: { symbol: string; timeframe: Timeframe; }): void; unlistenOHLCV(opts: { symbol: string; timeframe: Timeframe; }): void; listenOrderBook(symbol: string): void; unlistenOrderBook(symbol: string): void; fetchPositionMetadata({ requestId, accountId, symbol, }: { requestId: string; accountId: string; symbol: string; }): Promise; placePositionStop({ position, stop, requestId, priority, }: { position: Position; stop: PlacePositionStopOpts; requestId: string; priority?: boolean; }): Promise; placeOrders({ orders, accountId, requestId, priority, }: { orders: PlaceOrderOpts[]; accountId: string; requestId: string; priority?: boolean; }): Promise<(string | number)[]>; cancelOrders({ orderIds, accountId, requestId, priority, }: { orderIds: Order["id"][]; accountId: string; requestId: string; priority?: boolean; }): Promise; cancelSymbolOrders({ accountId, requestId, symbol, priority, }: { accountId: string; requestId: string; symbol: string; priority?: boolean; }): Promise; cancelAllOrders({ accountId, requestId, priority, }: { accountId: string; requestId: string; priority?: boolean; }): Promise; updateOrders({ updates, accountId, requestId, priority, }: { updates: UpdateOrderOpts[]; accountId: string; requestId: string; priority?: boolean; }): Promise; setLeverage({ requestId, accountId, symbol, leverage, }: { requestId: string; accountId: string; symbol: string; leverage: number; }): Promise; }