import type { OrderBookId, PubkeyStr, Resolution } from "../shared"; export type SubscribeParams = { type: "book_update"; orderbook_ids: OrderBookId[]; } | { type: "trades"; orderbook_ids: OrderBookId[]; } | { type: "user"; wallet_address: PubkeyStr; } | { type: "price_history"; orderbook_id: OrderBookId; resolution: Resolution; include_ohlcv?: boolean; } | { type: "ticker"; orderbook_ids: OrderBookId[]; } | { type: "market"; market_pubkey: PubkeyStr; } | { type: "deposit_price"; deposit_asset: string; resolution: Resolution; } | { type: "deposit_asset_price"; deposit_asset: string; }; export type UnsubscribeParams = { type: "book_update"; orderbook_ids: OrderBookId[]; } | { type: "trades"; orderbook_ids: OrderBookId[]; } | { type: "user"; wallet_address: PubkeyStr; } | { type: "price_history"; orderbook_id: OrderBookId; resolution: Resolution; } | { type: "ticker"; orderbook_ids: OrderBookId[]; } | { type: "market"; market_pubkey: PubkeyStr; } | { type: "deposit_price"; deposit_asset: string; resolution: Resolution; } | { type: "deposit_asset_price"; deposit_asset: string; }; export interface Subscription { toSubscribeParams(): SubscribeParams; toUnsubscribeParams(): UnsubscribeParams; matchesUnsubscribe(unsubscribe: UnsubscribeParams): boolean; subscriptionKey(): string; } export declare function subscriptionKey(params: SubscribeParams): string; export declare function unsubscribeMatches(subscribe: SubscribeParams, unsubscribe: UnsubscribeParams): boolean; //# sourceMappingURL=subscriptions.d.ts.map