import { TokenId, DecimalString, EpochMilliseconds, ConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js'; import { z } from 'zod'; import { P as PerpsInstrumentId, V as PerpsKlineInterval, c as PerpsDepositStatus, j as PerpsTradeId, ac as PerpsOrderId, k as PerpsSide, b as PerpsFundingPaymentId, a4 as PerpsNotificationId, a9 as PerpsNotificationType, a6 as PerpsNotificationOrderType, $ as PerpsMarginType, av as PerpsTimeInForce, af as PerpsOrderStatus, ax as PerpsTpSlKind, aB as PerpsTpSlScope, d as PerpsWithdrawalId, e as PerpsKnownWithdrawalStatus } from '../orders-BDfNkzav.js'; import * as _polymarket_types from '@polymarket/types'; import { R as ReactionType } from '../comment-C-jBbhp7.js'; declare enum UserOrderStatus { Live = "LIVE", Matched = "MATCHED", Delayed = "DELAYED", Unmatched = "UNMATCHED", Canceled = "CANCELED" } declare const OrderBookLevelSchema: z.ZodObject<{ price: z.ZodPipe>; size: z.ZodPipe>; }, z.core.$strip>; type OrderBookLevel = z.infer; declare const MarketBookEventSchema: z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; bids: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; asks: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; hash: z.ZodOptional>; timestamp: z.ZodOptional>>>; min_order_size: z.ZodPipe, z.ZodOptional>>>>; tick_size: z.ZodPipe, z.ZodOptional>>>>; neg_risk: z.ZodOptional>; last_trade_price: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "book"; payload: { tokenId: TokenId; minOrderSize: DecimalString | null | undefined; tickSize: DecimalString | null | undefined; negRisk: boolean | null | undefined; lastTradePrice: DecimalString | null | undefined; market: string; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash?: string | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "book"; market: string; asset_id: TokenId; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash?: string | null | undefined; timestamp?: EpochMilliseconds | null | undefined; min_order_size?: DecimalString | null | undefined; tick_size?: DecimalString | null | undefined; neg_risk?: boolean | null | undefined; last_trade_price?: DecimalString | null | undefined; }>>; type MarketBookEvent = z.infer; declare const PriceChangeSchema: z.ZodPipe>; price: z.ZodPipe>; size: z.ZodPipe>; side: z.ZodType>; hash: z.ZodOptional>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }, { asset_id: TokenId; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; }>>; type PriceChange = z.infer; declare const MarketPriceChangeEventSchema: z.ZodPipe; market: z.ZodString; price_changes: z.ZodArray>; price: z.ZodPipe>; size: z.ZodPipe>; side: z.ZodType>; hash: z.ZodOptional>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }, { asset_id: TokenId; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; }>>>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "price_change"; payload: { priceChanges: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }[]; market: string; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "price_change"; market: string; price_changes: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }[]; timestamp?: EpochMilliseconds | null | undefined; }>>; type MarketPriceChangeEvent = z.infer; declare const MarketLastTradePriceEventSchema: z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; price: z.ZodPipe>; size: z.ZodPipe, z.ZodOptional>>>>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; side: z.ZodType>; timestamp: z.ZodOptional>>>; transaction_hash: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "last_trade_price"; payload: { tokenId: TokenId; feeRateBps: DecimalString | null | undefined; transactionHash: string | null | undefined; market: string; price: DecimalString; side: OrderSide; size?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "last_trade_price"; market: string; asset_id: TokenId; price: DecimalString; side: OrderSide; size?: DecimalString | null | undefined; fee_rate_bps?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; transaction_hash?: string | null | undefined; }>>; type MarketLastTradePriceEvent = z.infer; declare const MarketTickSizeChangeEventSchema: z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; old_tick_size: z.ZodPipe, z.ZodOptional>>>>; new_tick_size: z.ZodPipe>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "tick_size_change"; payload: { tokenId: TokenId; oldTickSize: DecimalString | null | undefined; newTickSize: DecimalString; market: string; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "tick_size_change"; market: string; asset_id: TokenId; new_tick_size: DecimalString; old_tick_size?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }>>; type MarketTickSizeChangeEvent = z.infer; declare const MarketBestBidAskEventSchema: z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; spread: z.ZodPipe, z.ZodOptional>>>>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "best_bid_ask"; payload: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; market: string; spread?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "best_bid_ask"; market: string; asset_id: TokenId; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; spread?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }>>; type MarketBestBidAskEvent = z.infer; declare const MarketEventMessageSchema: z.ZodObject<{ id: z.ZodString; ticker: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>; type MarketEventMessage = z.infer; declare const NewMarketEventSchema: z.ZodPipe; id: z.ZodString; question: z.ZodOptional>; market: z.ZodString; slug: z.ZodOptional>; description: z.ZodOptional>; assets_ids: z.ZodOptional>>>>; outcomes: z.ZodOptional>>; event_message: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>>>; timestamp: z.ZodOptional>>>; tags: z.ZodOptional>>; condition_id: z.ZodOptional>>>; active: z.ZodOptional>; clob_token_ids: z.ZodOptional>>; sports_market_type: z.ZodOptional>; line: z.ZodPipe, z.ZodOptional>>>>; game_start_time: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; order_price_min_tick_size: z.ZodPipe, z.ZodOptional>>>>; group_item_title: z.ZodOptional>; taker_base_fee: z.ZodPipe, z.ZodOptional>>>>; fees_enabled: z.ZodOptional>; fee_schedule: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "new_market"; payload: { tokenIds: TokenId[] | null | undefined; eventMessage: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; conditionId: ConditionId | null | undefined; clobTokenIds: string[] | null | undefined; sportsMarketType: string | null | undefined; gameStartTime: IsoDateTimeString | null | undefined; orderPriceMinTickSize: DecimalString | null | undefined; groupItemTitle: string | null | undefined; takerBaseFee: DecimalString | null | undefined; feesEnabled: boolean | null | undefined; feeSchedule: unknown; id: string; market: string; question?: string | null | undefined; slug?: string | null | undefined; description?: string | null | undefined; outcomes?: string[] | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; active?: boolean | null | undefined; line?: DecimalString | null | undefined; }; }, { event_type: "new_market"; id: string; market: string; question?: string | null | undefined; slug?: string | null | undefined; description?: string | null | undefined; assets_ids?: TokenId[] | null | undefined; outcomes?: string[] | null | undefined; event_message?: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; condition_id?: ConditionId | null | undefined; active?: boolean | null | undefined; clob_token_ids?: string[] | null | undefined; sports_market_type?: string | null | undefined; line?: DecimalString | null | undefined; game_start_time?: IsoDateTimeString | null | undefined; order_price_min_tick_size?: DecimalString | null | undefined; group_item_title?: string | null | undefined; taker_base_fee?: DecimalString | null | undefined; fees_enabled?: boolean | null | undefined; fee_schedule?: unknown; }>>; type NewMarketEvent = z.infer; declare const MarketResolvedEventSchema: z.ZodPipe; id: z.ZodString; market: z.ZodString; assets_ids: z.ZodOptional>>>>; winning_asset_id: z.ZodOptional>>>; winning_outcome: z.ZodOptional>; event_message: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>>>; timestamp: z.ZodOptional>>>; tags: z.ZodOptional>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "market_resolved"; payload: { tokenIds: TokenId[] | null | undefined; winningTokenId: TokenId | null | undefined; winningOutcome: string | null | undefined; eventMessage: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; id: string; market: string; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; }; }, { event_type: "market_resolved"; id: string; market: string; assets_ids?: TokenId[] | null | undefined; winning_asset_id?: TokenId | null | undefined; winning_outcome?: string | null | undefined; event_message?: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; }>>; type MarketResolvedEvent = z.infer; declare enum UserOrderEventType { Placement = "PLACEMENT", Update = "UPDATE", Cancellation = "CANCELLATION" } declare const UserOrderEventSchema: z.ZodPipe; id: z.ZodString; owner: z.ZodString; market: z.ZodString; asset_id: z.ZodPipe>; side: z.ZodType>; order_owner: z.ZodOptional>; original_size: z.ZodPipe>; size_matched: z.ZodPipe>; price: z.ZodPipe>; associate_trades: z.ZodOptional>>; outcome: z.ZodOptional>; type: z.ZodEnum; created_at: z.ZodOptional>>>; expiration: z.ZodOptional>>>; order_type: z.ZodOptional>>; status: z.ZodOptional>>; maker_address: z.ZodOptional>; timestamp: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ topic: "user"; type: "order"; payload: { orderEventType: UserOrderEventType; tokenId: TokenId; orderOwner: string | null | undefined; originalSize: DecimalString; sizeMatched: DecimalString; associateTrades: string[] | null | undefined; createdAt: IsoDateTimeString | null | undefined; expiresAt: IsoDateTimeString | null | undefined; orderType: OrderType | null | undefined; makerAddress: string | null | undefined; id: string; owner: string; market: string; side: OrderSide; price: DecimalString; timestamp: EpochMilliseconds; outcome?: string | null | undefined; status?: UserOrderStatus | null | undefined; }; }, { event_type: "order"; id: string; owner: string; market: string; asset_id: TokenId; side: OrderSide; original_size: DecimalString; size_matched: DecimalString; price: DecimalString; type: UserOrderEventType; timestamp: EpochMilliseconds; order_owner?: string | null | undefined; associate_trades?: string[] | null | undefined; outcome?: string | null | undefined; created_at?: IsoDateTimeString | null | undefined; expiration?: IsoDateTimeString | null | undefined; order_type?: OrderType | null | undefined; status?: UserOrderStatus | null | undefined; maker_address?: string | null | undefined; }>>; type UserOrderEvent = z.infer; declare const TradeMakerOrderSchema: z.ZodPipe>; matched_amount: z.ZodPipe>; price: z.ZodPipe>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; asset_id: z.ZodPipe>; outcome: z.ZodOptional>; outcome_index: z.ZodOptional>; side: z.ZodType>; }, z.core.$strip>, z.ZodTransform<{ orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }, { order_id: string; owner: string; matched_amount: DecimalString; price: DecimalString; asset_id: TokenId; side: OrderSide; maker_address?: string | null | undefined; fee_rate_bps?: DecimalString | null | undefined; outcome?: string | null | undefined; outcome_index?: number | null | undefined; }>>; type TradeMakerOrder = z.infer; declare const UserTradeEventSchema: z.ZodPipe; type: z.ZodLiteral<"TRADE">; id: z.ZodString; taker_order_id: z.ZodString; market: z.ZodString; asset_id: z.ZodPipe>; side: z.ZodType>; size: z.ZodPipe>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; price: z.ZodPipe>; status: z.ZodPipe, z.ZodEnum>; match_time: z.ZodOptional>>>; matchtime: z.ZodOptional>>>; last_update: z.ZodOptional>>>; outcome: z.ZodOptional>; owner: z.ZodString; trade_owner: z.ZodOptional>; maker_address: z.ZodOptional>; transaction_hash: z.ZodOptional>; bucket_index: z.ZodOptional>; maker_orders: z.ZodOptional>; matched_amount: z.ZodPipe>; price: z.ZodPipe>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; asset_id: z.ZodPipe>; outcome: z.ZodOptional>; outcome_index: z.ZodOptional>; side: z.ZodType>; }, z.core.$strip>, z.ZodTransform<{ orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }, { order_id: string; owner: string; matched_amount: DecimalString; price: DecimalString; asset_id: TokenId; side: OrderSide; maker_address?: string | null | undefined; fee_rate_bps?: DecimalString | null | undefined; outcome?: string | null | undefined; outcome_index?: number | null | undefined; }>>>>>; trader_side: z.ZodOptional, z.ZodLiteral<"MAKER">]>>>; timestamp: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ topic: "user"; type: "trade"; payload: { takerOrderId: string; tokenId: TokenId; feeRateBps: DecimalString | null | undefined; matchedAt: IsoDateTimeString | null | undefined; updatedAt: IsoDateTimeString | null | undefined; tradeOwner: string | null | undefined; makerAddress: string | null | undefined; transactionHash: string | null | undefined; bucketIndex: number | null | undefined; makerOrders: { orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }[] | null | undefined; traderSide: "TAKER" | "MAKER" | null | undefined; id: string; market: string; side: OrderSide; size: DecimalString; price: DecimalString; status: TradeStatus; owner: string; timestamp: EpochMilliseconds; outcome?: string | null | undefined; }; }, { event_type: "trade"; type: "TRADE"; id: string; taker_order_id: string; market: string; asset_id: TokenId; side: OrderSide; size: DecimalString; price: DecimalString; status: TradeStatus; owner: string; timestamp: EpochMilliseconds; fee_rate_bps?: DecimalString | null | undefined; match_time?: IsoDateTimeString | null | undefined; matchtime?: IsoDateTimeString | null | undefined; last_update?: IsoDateTimeString | null | undefined; outcome?: string | null | undefined; trade_owner?: string | null | undefined; maker_address?: string | null | undefined; transaction_hash?: string | null | undefined; bucket_index?: number | null | undefined; maker_orders?: { orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }[] | null | undefined; trader_side?: "TAKER" | "MAKER" | null | undefined; }>>; type UserTradeEvent = z.infer; declare const StandardMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; bids: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; asks: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; hash: z.ZodOptional>; timestamp: z.ZodOptional>>>; min_order_size: z.ZodPipe, z.ZodOptional>>>>; tick_size: z.ZodPipe, z.ZodOptional>>>>; neg_risk: z.ZodOptional>; last_trade_price: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "book"; payload: { tokenId: TokenId; minOrderSize: DecimalString | null | undefined; tickSize: DecimalString | null | undefined; negRisk: boolean | null | undefined; lastTradePrice: DecimalString | null | undefined; market: string; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash?: string | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "book"; market: string; asset_id: TokenId; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash?: string | null | undefined; timestamp?: EpochMilliseconds | null | undefined; min_order_size?: DecimalString | null | undefined; tick_size?: DecimalString | null | undefined; neg_risk?: boolean | null | undefined; last_trade_price?: DecimalString | null | undefined; }>>, z.ZodPipe; market: z.ZodString; price_changes: z.ZodArray>; price: z.ZodPipe>; size: z.ZodPipe>; side: z.ZodType>; hash: z.ZodOptional>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }, { asset_id: TokenId; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; }>>>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "price_change"; payload: { priceChanges: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }[]; market: string; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "price_change"; market: string; price_changes: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }[]; timestamp?: EpochMilliseconds | null | undefined; }>>, z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; price: z.ZodPipe>; size: z.ZodPipe, z.ZodOptional>>>>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; side: z.ZodType>; timestamp: z.ZodOptional>>>; transaction_hash: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "last_trade_price"; payload: { tokenId: TokenId; feeRateBps: DecimalString | null | undefined; transactionHash: string | null | undefined; market: string; price: DecimalString; side: OrderSide; size?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "last_trade_price"; market: string; asset_id: TokenId; price: DecimalString; side: OrderSide; size?: DecimalString | null | undefined; fee_rate_bps?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; transaction_hash?: string | null | undefined; }>>, z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; old_tick_size: z.ZodPipe, z.ZodOptional>>>>; new_tick_size: z.ZodPipe>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "tick_size_change"; payload: { tokenId: TokenId; oldTickSize: DecimalString | null | undefined; newTickSize: DecimalString; market: string; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "tick_size_change"; market: string; asset_id: TokenId; new_tick_size: DecimalString; old_tick_size?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }>>], "event_type">; type StandardMarketEvent = z.infer; declare const CustomMarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; spread: z.ZodPipe, z.ZodOptional>>>>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "best_bid_ask"; payload: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; market: string; spread?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "best_bid_ask"; market: string; asset_id: TokenId; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; spread?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }>>, z.ZodPipe; id: z.ZodString; question: z.ZodOptional>; market: z.ZodString; slug: z.ZodOptional>; description: z.ZodOptional>; assets_ids: z.ZodOptional>>>>; outcomes: z.ZodOptional>>; event_message: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>>>; timestamp: z.ZodOptional>>>; tags: z.ZodOptional>>; condition_id: z.ZodOptional>>>; active: z.ZodOptional>; clob_token_ids: z.ZodOptional>>; sports_market_type: z.ZodOptional>; line: z.ZodPipe, z.ZodOptional>>>>; game_start_time: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; order_price_min_tick_size: z.ZodPipe, z.ZodOptional>>>>; group_item_title: z.ZodOptional>; taker_base_fee: z.ZodPipe, z.ZodOptional>>>>; fees_enabled: z.ZodOptional>; fee_schedule: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "new_market"; payload: { tokenIds: TokenId[] | null | undefined; eventMessage: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; conditionId: ConditionId | null | undefined; clobTokenIds: string[] | null | undefined; sportsMarketType: string | null | undefined; gameStartTime: IsoDateTimeString | null | undefined; orderPriceMinTickSize: DecimalString | null | undefined; groupItemTitle: string | null | undefined; takerBaseFee: DecimalString | null | undefined; feesEnabled: boolean | null | undefined; feeSchedule: unknown; id: string; market: string; question?: string | null | undefined; slug?: string | null | undefined; description?: string | null | undefined; outcomes?: string[] | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; active?: boolean | null | undefined; line?: DecimalString | null | undefined; }; }, { event_type: "new_market"; id: string; market: string; question?: string | null | undefined; slug?: string | null | undefined; description?: string | null | undefined; assets_ids?: TokenId[] | null | undefined; outcomes?: string[] | null | undefined; event_message?: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; condition_id?: ConditionId | null | undefined; active?: boolean | null | undefined; clob_token_ids?: string[] | null | undefined; sports_market_type?: string | null | undefined; line?: DecimalString | null | undefined; game_start_time?: IsoDateTimeString | null | undefined; order_price_min_tick_size?: DecimalString | null | undefined; group_item_title?: string | null | undefined; taker_base_fee?: DecimalString | null | undefined; fees_enabled?: boolean | null | undefined; fee_schedule?: unknown; }>>, z.ZodPipe; id: z.ZodString; market: z.ZodString; assets_ids: z.ZodOptional>>>>; winning_asset_id: z.ZodOptional>>>; winning_outcome: z.ZodOptional>; event_message: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>>>; timestamp: z.ZodOptional>>>; tags: z.ZodOptional>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "market_resolved"; payload: { tokenIds: TokenId[] | null | undefined; winningTokenId: TokenId | null | undefined; winningOutcome: string | null | undefined; eventMessage: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; id: string; market: string; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; }; }, { event_type: "market_resolved"; id: string; market: string; assets_ids?: TokenId[] | null | undefined; winning_asset_id?: TokenId | null | undefined; winning_outcome?: string | null | undefined; event_message?: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; }>>], "event_type">; type CustomMarketEvent = z.infer; declare const MarketEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; bids: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; asks: z.ZodArray>; size: z.ZodPipe>; }, z.core.$strip>>; hash: z.ZodOptional>; timestamp: z.ZodOptional>>>; min_order_size: z.ZodPipe, z.ZodOptional>>>>; tick_size: z.ZodPipe, z.ZodOptional>>>>; neg_risk: z.ZodOptional>; last_trade_price: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "book"; payload: { tokenId: TokenId; minOrderSize: DecimalString | null | undefined; tickSize: DecimalString | null | undefined; negRisk: boolean | null | undefined; lastTradePrice: DecimalString | null | undefined; market: string; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash?: string | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "book"; market: string; asset_id: TokenId; bids: { price: DecimalString; size: DecimalString; }[]; asks: { price: DecimalString; size: DecimalString; }[]; hash?: string | null | undefined; timestamp?: EpochMilliseconds | null | undefined; min_order_size?: DecimalString | null | undefined; tick_size?: DecimalString | null | undefined; neg_risk?: boolean | null | undefined; last_trade_price?: DecimalString | null | undefined; }>>, z.ZodPipe; market: z.ZodString; price_changes: z.ZodArray>; price: z.ZodPipe>; size: z.ZodPipe>; side: z.ZodType>; hash: z.ZodOptional>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; }, z.core.$strip>, z.ZodTransform<{ tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }, { asset_id: TokenId; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; }>>>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "price_change"; payload: { priceChanges: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }[]; market: string; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "price_change"; market: string; price_changes: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; price: DecimalString; size: DecimalString; side: OrderSide; hash?: string | null | undefined; }[]; timestamp?: EpochMilliseconds | null | undefined; }>>, z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; price: z.ZodPipe>; size: z.ZodPipe, z.ZodOptional>>>>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; side: z.ZodType>; timestamp: z.ZodOptional>>>; transaction_hash: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "last_trade_price"; payload: { tokenId: TokenId; feeRateBps: DecimalString | null | undefined; transactionHash: string | null | undefined; market: string; price: DecimalString; side: OrderSide; size?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "last_trade_price"; market: string; asset_id: TokenId; price: DecimalString; side: OrderSide; size?: DecimalString | null | undefined; fee_rate_bps?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; transaction_hash?: string | null | undefined; }>>, z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; old_tick_size: z.ZodPipe, z.ZodOptional>>>>; new_tick_size: z.ZodPipe>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "tick_size_change"; payload: { tokenId: TokenId; oldTickSize: DecimalString | null | undefined; newTickSize: DecimalString; market: string; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "tick_size_change"; market: string; asset_id: TokenId; new_tick_size: DecimalString; old_tick_size?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }>>, z.ZodPipe; market: z.ZodString; asset_id: z.ZodPipe>; best_bid: z.ZodPipe, z.ZodOptional>>>>; best_ask: z.ZodPipe, z.ZodOptional>>>>; spread: z.ZodPipe, z.ZodOptional>>>>; timestamp: z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "best_bid_ask"; payload: { tokenId: TokenId; bestBid: DecimalString | null | undefined; bestAsk: DecimalString | null | undefined; market: string; spread?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }; }, { event_type: "best_bid_ask"; market: string; asset_id: TokenId; best_bid?: DecimalString | null | undefined; best_ask?: DecimalString | null | undefined; spread?: DecimalString | null | undefined; timestamp?: EpochMilliseconds | null | undefined; }>>, z.ZodPipe; id: z.ZodString; question: z.ZodOptional>; market: z.ZodString; slug: z.ZodOptional>; description: z.ZodOptional>; assets_ids: z.ZodOptional>>>>; outcomes: z.ZodOptional>>; event_message: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>>>; timestamp: z.ZodOptional>>>; tags: z.ZodOptional>>; condition_id: z.ZodOptional>>>; active: z.ZodOptional>; clob_token_ids: z.ZodOptional>>; sports_market_type: z.ZodOptional>; line: z.ZodPipe, z.ZodOptional>>>>; game_start_time: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; order_price_min_tick_size: z.ZodPipe, z.ZodOptional>>>>; group_item_title: z.ZodOptional>; taker_base_fee: z.ZodPipe, z.ZodOptional>>>>; fees_enabled: z.ZodOptional>; fee_schedule: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "new_market"; payload: { tokenIds: TokenId[] | null | undefined; eventMessage: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; conditionId: ConditionId | null | undefined; clobTokenIds: string[] | null | undefined; sportsMarketType: string | null | undefined; gameStartTime: IsoDateTimeString | null | undefined; orderPriceMinTickSize: DecimalString | null | undefined; groupItemTitle: string | null | undefined; takerBaseFee: DecimalString | null | undefined; feesEnabled: boolean | null | undefined; feeSchedule: unknown; id: string; market: string; question?: string | null | undefined; slug?: string | null | undefined; description?: string | null | undefined; outcomes?: string[] | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; active?: boolean | null | undefined; line?: DecimalString | null | undefined; }; }, { event_type: "new_market"; id: string; market: string; question?: string | null | undefined; slug?: string | null | undefined; description?: string | null | undefined; assets_ids?: TokenId[] | null | undefined; outcomes?: string[] | null | undefined; event_message?: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; condition_id?: ConditionId | null | undefined; active?: boolean | null | undefined; clob_token_ids?: string[] | null | undefined; sports_market_type?: string | null | undefined; line?: DecimalString | null | undefined; game_start_time?: IsoDateTimeString | null | undefined; order_price_min_tick_size?: DecimalString | null | undefined; group_item_title?: string | null | undefined; taker_base_fee?: DecimalString | null | undefined; fees_enabled?: boolean | null | undefined; fee_schedule?: unknown; }>>, z.ZodPipe; id: z.ZodString; market: z.ZodString; assets_ids: z.ZodOptional>>>>; winning_asset_id: z.ZodOptional>>>; winning_outcome: z.ZodOptional>; event_message: z.ZodOptional>; slug: z.ZodOptional>; title: z.ZodOptional>; description: z.ZodOptional>; }, z.core.$strip>>>; timestamp: z.ZodOptional>>>; tags: z.ZodOptional>>; }, z.core.$strip>, z.ZodTransform<{ topic: "market"; type: "market_resolved"; payload: { tokenIds: TokenId[] | null | undefined; winningTokenId: TokenId | null | undefined; winningOutcome: string | null | undefined; eventMessage: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; id: string; market: string; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; }; }, { event_type: "market_resolved"; id: string; market: string; assets_ids?: TokenId[] | null | undefined; winning_asset_id?: TokenId | null | undefined; winning_outcome?: string | null | undefined; event_message?: { id: string; ticker?: string | null | undefined; slug?: string | null | undefined; title?: string | null | undefined; description?: string | null | undefined; } | null | undefined; timestamp?: EpochMilliseconds | null | undefined; tags?: string[] | null | undefined; }>>], "event_type">; type MarketEvent = StandardMarketEvent | CustomMarketEvent; declare const UserEventSchema: z.ZodDiscriminatedUnion<[z.ZodPipe; id: z.ZodString; owner: z.ZodString; market: z.ZodString; asset_id: z.ZodPipe>; side: z.ZodType>; order_owner: z.ZodOptional>; original_size: z.ZodPipe>; size_matched: z.ZodPipe>; price: z.ZodPipe>; associate_trades: z.ZodOptional>>; outcome: z.ZodOptional>; type: z.ZodEnum; created_at: z.ZodOptional>>>; expiration: z.ZodOptional>>>; order_type: z.ZodOptional>>; status: z.ZodOptional>>; maker_address: z.ZodOptional>; timestamp: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ topic: "user"; type: "order"; payload: { orderEventType: UserOrderEventType; tokenId: TokenId; orderOwner: string | null | undefined; originalSize: DecimalString; sizeMatched: DecimalString; associateTrades: string[] | null | undefined; createdAt: IsoDateTimeString | null | undefined; expiresAt: IsoDateTimeString | null | undefined; orderType: OrderType | null | undefined; makerAddress: string | null | undefined; id: string; owner: string; market: string; side: OrderSide; price: DecimalString; timestamp: EpochMilliseconds; outcome?: string | null | undefined; status?: UserOrderStatus | null | undefined; }; }, { event_type: "order"; id: string; owner: string; market: string; asset_id: TokenId; side: OrderSide; original_size: DecimalString; size_matched: DecimalString; price: DecimalString; type: UserOrderEventType; timestamp: EpochMilliseconds; order_owner?: string | null | undefined; associate_trades?: string[] | null | undefined; outcome?: string | null | undefined; created_at?: IsoDateTimeString | null | undefined; expiration?: IsoDateTimeString | null | undefined; order_type?: OrderType | null | undefined; status?: UserOrderStatus | null | undefined; maker_address?: string | null | undefined; }>>, z.ZodPipe; type: z.ZodLiteral<"TRADE">; id: z.ZodString; taker_order_id: z.ZodString; market: z.ZodString; asset_id: z.ZodPipe>; side: z.ZodType>; size: z.ZodPipe>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; price: z.ZodPipe>; status: z.ZodPipe, z.ZodEnum>; match_time: z.ZodOptional>>>; matchtime: z.ZodOptional>>>; last_update: z.ZodOptional>>>; outcome: z.ZodOptional>; owner: z.ZodString; trade_owner: z.ZodOptional>; maker_address: z.ZodOptional>; transaction_hash: z.ZodOptional>; bucket_index: z.ZodOptional>; maker_orders: z.ZodOptional>; matched_amount: z.ZodPipe>; price: z.ZodPipe>; fee_rate_bps: z.ZodPipe, z.ZodOptional>>>>; asset_id: z.ZodPipe>; outcome: z.ZodOptional>; outcome_index: z.ZodOptional>; side: z.ZodType>; }, z.core.$strip>, z.ZodTransform<{ orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }, { order_id: string; owner: string; matched_amount: DecimalString; price: DecimalString; asset_id: TokenId; side: OrderSide; maker_address?: string | null | undefined; fee_rate_bps?: DecimalString | null | undefined; outcome?: string | null | undefined; outcome_index?: number | null | undefined; }>>>>>; trader_side: z.ZodOptional, z.ZodLiteral<"MAKER">]>>>; timestamp: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ topic: "user"; type: "trade"; payload: { takerOrderId: string; tokenId: TokenId; feeRateBps: DecimalString | null | undefined; matchedAt: IsoDateTimeString | null | undefined; updatedAt: IsoDateTimeString | null | undefined; tradeOwner: string | null | undefined; makerAddress: string | null | undefined; transactionHash: string | null | undefined; bucketIndex: number | null | undefined; makerOrders: { orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }[] | null | undefined; traderSide: "TAKER" | "MAKER" | null | undefined; id: string; market: string; side: OrderSide; size: DecimalString; price: DecimalString; status: TradeStatus; owner: string; timestamp: EpochMilliseconds; outcome?: string | null | undefined; }; }, { event_type: "trade"; type: "TRADE"; id: string; taker_order_id: string; market: string; asset_id: TokenId; side: OrderSide; size: DecimalString; price: DecimalString; status: TradeStatus; owner: string; timestamp: EpochMilliseconds; fee_rate_bps?: DecimalString | null | undefined; match_time?: IsoDateTimeString | null | undefined; matchtime?: IsoDateTimeString | null | undefined; last_update?: IsoDateTimeString | null | undefined; outcome?: string | null | undefined; trade_owner?: string | null | undefined; maker_address?: string | null | undefined; transaction_hash?: string | null | undefined; bucket_index?: number | null | undefined; maker_orders?: { orderId: string; makerAddress: string | null | undefined; matchedAmount: DecimalString; feeRateBps: DecimalString | null | undefined; tokenId: TokenId; outcomeIndex: number | null | undefined; owner: string; price: DecimalString; side: OrderSide; outcome?: string | null | undefined; }[] | null | undefined; trader_side?: "TAKER" | "MAKER" | null | undefined; }>>], "event_type">; type UserEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTradeEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodArray>; iid: z.ZodPipe>; side: z.ZodEnum; p: z.ZodPipe>; qty: z.ZodPipe>; ts: z.ZodPipe>; hash: z.ZodPipe, z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }, { tid: PerpsTradeId; iid: PerpsInstrumentId; side: PerpsSide; p: DecimalString; qty: DecimalString; ts: EpochMilliseconds; hash?: _polymarket_types.TxHash | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.trades"; type: "trade"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { tradeId: PerpsTradeId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }[]; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { tradeId: PerpsTradeId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }[]; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsTradeEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsBboEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; bp: z.ZodPipe>; bq: z.ZodPipe>; ap: z.ZodPipe>; aq: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; bidPrice: DecimalString; bidQuantity: DecimalString; askPrice: DecimalString; askQuantity: DecimalString; }, { iid: PerpsInstrumentId; bp: DecimalString; bq: DecimalString; ap: DecimalString; aq: DecimalString; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.bbo"; type: "bbo"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; bidPrice: DecimalString; bidQuantity: DecimalString; askPrice: DecimalString; askQuantity: DecimalString; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { instrumentId: PerpsInstrumentId; bidPrice: DecimalString; bidQuantity: DecimalString; askPrice: DecimalString; askQuantity: DecimalString; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsBboEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsBookEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>, z.ZodPipe>], null>, z.ZodTransform<{ price: DecimalString; quantity: DecimalString; }, [DecimalString, DecimalString]>>>; a: z.ZodArray>, z.ZodPipe>], null>, z.ZodTransform<{ price: DecimalString; quantity: DecimalString; }, [DecimalString, DecimalString]>>>; }, z.core.$strip>, z.ZodTransform<{ bids: { price: DecimalString; quantity: DecimalString; }[]; asks: { price: DecimalString; quantity: DecimalString; }[]; }, { b: { price: DecimalString; quantity: DecimalString; }[]; a: { price: DecimalString; quantity: DecimalString; }[]; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.book"; type: "book"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { bids: { price: DecimalString; quantity: DecimalString; }[]; asks: { price: DecimalString; quantity: DecimalString; }[]; instrumentId: PerpsInstrumentId; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { bids: { price: DecimalString; quantity: DecimalString; }[]; asks: { price: DecimalString; quantity: DecimalString; }[]; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsBookEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTickerEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; idx: z.ZodPipe>; mark: z.ZodPipe>; last: z.ZodPipe>; mid: z.ZodPipe>; oi: z.ZodPipe>; fr: z.ZodPipe>; nxf: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; indexPrice: DecimalString; markPrice: DecimalString; lastPrice: DecimalString; midPrice: DecimalString; openInterest: DecimalString; fundingRate: DecimalString; nextFunding: EpochMilliseconds; }, { iid: PerpsInstrumentId; idx: DecimalString; mark: DecimalString; last: DecimalString; mid: DecimalString; oi: DecimalString; fr: DecimalString; nxf: EpochMilliseconds; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.tickers"; type: "ticker"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; indexPrice: DecimalString; markPrice: DecimalString; lastPrice: DecimalString; midPrice: DecimalString; openInterest: DecimalString; fundingRate: DecimalString; nextFunding: EpochMilliseconds; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { instrumentId: PerpsInstrumentId; indexPrice: DecimalString; markPrice: DecimalString; lastPrice: DecimalString; midPrice: DecimalString; openInterest: DecimalString; fundingRate: DecimalString; nextFunding: EpochMilliseconds; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsTickerEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsStatisticEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; vol: z.ZodPipe>; open: z.ZodPipe>; klines: z.ZodArray>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodNumber], null>, z.ZodTransform<{ timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; volume: DecimalString; openPrice: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }, { iid: PerpsInstrumentId; vol: DecimalString; open: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.statistics"; type: "statistic"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; volume: DecimalString; openPrice: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { instrumentId: PerpsInstrumentId; volume: DecimalString; openPrice: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsStatisticEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsCandleEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodArray>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodNumber], null>, z.ZodTransform<{ timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.candles"; type: "candle"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; interval: PerpsKlineInterval.OneMinute | PerpsKlineInterval.FiveMinutes | PerpsKlineInterval.FifteenMinutes | PerpsKlineInterval.OneHour | PerpsKlineInterval.FourHours | PerpsKlineInterval.OneDay | PerpsKlineInterval.OneWeek; candles: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsCandleEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsMarketDataEventSchema: z.ZodUnion>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodArray>; iid: z.ZodPipe>; side: z.ZodEnum; p: z.ZodPipe>; qty: z.ZodPipe>; ts: z.ZodPipe>; hash: z.ZodPipe, z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }, { tid: PerpsTradeId; iid: PerpsInstrumentId; side: PerpsSide; p: DecimalString; qty: DecimalString; ts: EpochMilliseconds; hash?: _polymarket_types.TxHash | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.trades"; type: "trade"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { tradeId: PerpsTradeId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }[]; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { tradeId: PerpsTradeId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; timestamp: EpochMilliseconds; hash: _polymarket_types.TxHash | undefined; }[]; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; bp: z.ZodPipe>; bq: z.ZodPipe>; ap: z.ZodPipe>; aq: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; bidPrice: DecimalString; bidQuantity: DecimalString; askPrice: DecimalString; askQuantity: DecimalString; }, { iid: PerpsInstrumentId; bp: DecimalString; bq: DecimalString; ap: DecimalString; aq: DecimalString; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.bbo"; type: "bbo"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; bidPrice: DecimalString; bidQuantity: DecimalString; askPrice: DecimalString; askQuantity: DecimalString; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { instrumentId: PerpsInstrumentId; bidPrice: DecimalString; bidQuantity: DecimalString; askPrice: DecimalString; askQuantity: DecimalString; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>, z.ZodPipe>], null>, z.ZodTransform<{ price: DecimalString; quantity: DecimalString; }, [DecimalString, DecimalString]>>>; a: z.ZodArray>, z.ZodPipe>], null>, z.ZodTransform<{ price: DecimalString; quantity: DecimalString; }, [DecimalString, DecimalString]>>>; }, z.core.$strip>, z.ZodTransform<{ bids: { price: DecimalString; quantity: DecimalString; }[]; asks: { price: DecimalString; quantity: DecimalString; }[]; }, { b: { price: DecimalString; quantity: DecimalString; }[]; a: { price: DecimalString; quantity: DecimalString; }[]; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.book"; type: "book"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { bids: { price: DecimalString; quantity: DecimalString; }[]; asks: { price: DecimalString; quantity: DecimalString; }[]; instrumentId: PerpsInstrumentId; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { bids: { price: DecimalString; quantity: DecimalString; }[]; asks: { price: DecimalString; quantity: DecimalString; }[]; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; idx: z.ZodPipe>; mark: z.ZodPipe>; last: z.ZodPipe>; mid: z.ZodPipe>; oi: z.ZodPipe>; fr: z.ZodPipe>; nxf: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; indexPrice: DecimalString; markPrice: DecimalString; lastPrice: DecimalString; midPrice: DecimalString; openInterest: DecimalString; fundingRate: DecimalString; nextFunding: EpochMilliseconds; }, { iid: PerpsInstrumentId; idx: DecimalString; mark: DecimalString; last: DecimalString; mid: DecimalString; oi: DecimalString; fr: DecimalString; nxf: EpochMilliseconds; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.tickers"; type: "ticker"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; indexPrice: DecimalString; markPrice: DecimalString; lastPrice: DecimalString; midPrice: DecimalString; openInterest: DecimalString; fundingRate: DecimalString; nextFunding: EpochMilliseconds; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { instrumentId: PerpsInstrumentId; indexPrice: DecimalString; markPrice: DecimalString; lastPrice: DecimalString; midPrice: DecimalString; openInterest: DecimalString; fundingRate: DecimalString; nextFunding: EpochMilliseconds; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; vol: z.ZodPipe>; open: z.ZodPipe>; klines: z.ZodArray>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodNumber], null>, z.ZodTransform<{ timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; volume: DecimalString; openPrice: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }, { iid: PerpsInstrumentId; vol: DecimalString; open: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.statistics"; type: "statistic"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; volume: DecimalString; openPrice: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { instrumentId: PerpsInstrumentId; volume: DecimalString; openPrice: DecimalString; klines: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodArray>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodPipe>, z.ZodNumber], null>, z.ZodTransform<{ timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }, [EpochMilliseconds, DecimalString, DecimalString, DecimalString, DecimalString, DecimalString, number]>>>; }, z.core.$strip>, z.ZodTransform<{ topic: "perps.candles"; type: "candle"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { instrumentId: PerpsInstrumentId; interval: PerpsKlineInterval.OneMinute | PerpsKlineInterval.FiveMinutes | PerpsKlineInterval.FifteenMinutes | PerpsKlineInterval.OneHour | PerpsKlineInterval.FourHours | PerpsKlineInterval.OneDay | PerpsKlineInterval.OneWeek; candles: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { timestamp: EpochMilliseconds; open: DecimalString; high: DecimalString; low: DecimalString; close: DecimalString; volume: DecimalString; trades: number; }[]; }>>]>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsMarketDataEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsBalanceUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"balances">; data: z.ZodObject<{ asset: z.ZodString; balance: z.ZodPipe>; value: z.ZodPipe>; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ type: "balance"; channel: "balances"; timestamp: number; sequence: number; payload: { asset: string; balance: DecimalString; value: DecimalString; }; }, { ts: EpochMilliseconds; sq: number; ch: "balances"; data: { asset: string; balance: DecimalString; value: DecimalString; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsBalanceUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsPortfolioUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"portfolio">; data: z.ZodPipe>; symbol: z.ZodString; size: z.ZodPipe>; entry_price: z.ZodPipe>; leverage: z.ZodNumber; cross: z.ZodBoolean; initial_margin: z.ZodPipe>; maintenance_margin: z.ZodPipe>; position_value: z.ZodPipe>; liquidation_price: z.ZodPipe>; unrealized_pnl: z.ZodPipe>; return_on_equity: z.ZodPipe>; cumulative_funding: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }, { instrument_id: PerpsInstrumentId; symbol: string; size: DecimalString; entry_price: DecimalString; leverage: number; cross: boolean; initial_margin: DecimalString; maintenance_margin: DecimalString; position_value: DecimalString; liquidation_price: DecimalString; unrealized_pnl: DecimalString; return_on_equity: DecimalString; cumulative_funding: DecimalString; }>>>; margin: z.ZodPipe>; total_initial_margin: z.ZodPipe>; total_maintenance_margin: z.ZodPipe>; total_position_value: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }, { total_account_value: DecimalString; total_initial_margin: DecimalString; total_maintenance_margin: DecimalString; total_position_value: DecimalString; }>>; withdrawable: z.ZodPipe>; in_liquidation: z.ZodBoolean; timestamp: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; inLiquidation: boolean; timestamp: EpochMilliseconds; }, { positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; in_liquidation: boolean; timestamp: EpochMilliseconds; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "portfolio"; channel: "portfolio"; timestamp: number; sequence: number; payload: { positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; inLiquidation: boolean; timestamp: EpochMilliseconds; }; }, { ts: EpochMilliseconds; sq: number; ch: "portfolio"; data: { positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; inLiquidation: boolean; timestamp: EpochMilliseconds; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsPortfolioUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsOrderUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"orders">; data: z.ZodPipe>; iid: z.ZodPipe>; buy: z.ZodBoolean; p: z.ZodPipe>; qty: z.ZodPipe>; tif: z.ZodEnum; po: z.ZodBoolean; ro: z.ZodBoolean; status: z.ZodEnum; rest: z.ZodPipe>; fill: z.ZodPipe>; cts: z.ZodPipe>; uts: z.ZodPipe>; coid: z.ZodOptional; tpsl: z.ZodOptional; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }, { oid: PerpsOrderId; iid: PerpsInstrumentId; buy: boolean; p: DecimalString; qty: DecimalString; tif: PerpsTimeInForce; po: boolean; ro: boolean; status: PerpsOrderStatus; rest: DecimalString; fill: DecimalString; cts: EpochMilliseconds; uts: EpochMilliseconds; coid?: string | undefined; tpsl?: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | null | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "order"; channel: "orders"; timestamp: number; sequence: number; payload: { id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }; }, { ts: EpochMilliseconds; sq: number; ch: "orders"; data: { id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsOrderUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsFillUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"fills">; data: z.ZodArray>; oid: z.ZodPipe>; iid: z.ZodPipe>; side: z.ZodEnum; p: z.ZodPipe>; qty: z.ZodPipe>; taker: z.ZodBoolean; fee: z.ZodPipe>; fea: z.ZodString; psz: z.ZodPipe>; pep: z.ZodPipe>; pnl: z.ZodPipe>; liq: z.ZodBoolean; ts: z.ZodPipe>; coid: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }, { tid: PerpsTradeId; oid: PerpsOrderId; iid: PerpsInstrumentId; side: PerpsSide; p: DecimalString; qty: DecimalString; taker: boolean; fee: DecimalString; fea: string; psz: DecimalString; pep: DecimalString; pnl: DecimalString; liq: boolean; ts: EpochMilliseconds; coid?: string | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ type: "fill"; channel: "fills"; timestamp: number; sequence: number; payload: { tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }[]; }, { ts: EpochMilliseconds; sq: number; ch: "fills"; data: { tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }[]; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsFillUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsFundingUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"funding">; data: z.ZodPipe>; iid: z.ZodPipe>; sz: z.ZodPipe>; fr: z.ZodPipe>; fund: z.ZodPipe>; fua: z.ZodString; ts: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsFundingPaymentId; instrumentId: PerpsInstrumentId; size: DecimalString; fundingRate: DecimalString; fundingAsset: string; funding: DecimalString; timestamp: EpochMilliseconds; }, { id: PerpsFundingPaymentId; iid: PerpsInstrumentId; sz: DecimalString; fr: DecimalString; fund: DecimalString; fua: string; ts: EpochMilliseconds; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "funding"; channel: "funding"; timestamp: number; sequence: number; payload: { id: PerpsFundingPaymentId; instrumentId: PerpsInstrumentId; size: DecimalString; fundingRate: DecimalString; fundingAsset: string; funding: DecimalString; timestamp: EpochMilliseconds; }; }, { ts: EpochMilliseconds; sq: number; ch: "funding"; data: { id: PerpsFundingPaymentId; instrumentId: PerpsInstrumentId; size: DecimalString; fundingRate: DecimalString; fundingAsset: string; funding: DecimalString; timestamp: EpochMilliseconds; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsFundingUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsDepositUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"deposits">; data: z.ZodPipe, z.ZodOptional>>>; asset: z.ZodString; amount: z.ZodPipe>; status: z.ZodEnum; }, z.core.$strip>, z.ZodTransform<{ hash: _polymarket_types.TxHash | undefined; asset: string; amount: BaseUnits; status: PerpsDepositStatus; }, { asset: string; amount: BaseUnits; status: PerpsDepositStatus; hash?: _polymarket_types.TxHash | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "deposit"; channel: "deposits"; timestamp: number; sequence: number; payload: { hash: _polymarket_types.TxHash | undefined; asset: string; amount: BaseUnits; status: PerpsDepositStatus; }; }, { ts: EpochMilliseconds; sq: number; ch: "deposits"; data: { hash: _polymarket_types.TxHash | undefined; asset: string; amount: BaseUnits; status: PerpsDepositStatus; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsDepositUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"withdrawals">; data: z.ZodPipe>; asset: z.ZodString; amount: z.ZodPipe>; fee: z.ZodPipe>; status: z.ZodPipe>; to: z.ZodPipe>; hash: z.ZodPipe, z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ withdrawalId: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash: _polymarket_types.TxHash | undefined; }, { withdraw_id: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash?: _polymarket_types.TxHash | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "withdrawal"; channel: "withdrawals"; timestamp: number; sequence: number; payload: { withdrawalId: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash: _polymarket_types.TxHash | undefined; }; }, { ts: EpochMilliseconds; sq: number; ch: "withdrawals"; data: { withdrawalId: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash: _polymarket_types.TxHash | undefined; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsWithdrawalUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"notifications">; data: z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodEnum<{ position_opened: PerpsNotificationType.PositionOpened; position_increased: PerpsNotificationType.PositionIncreased; position_reduced: PerpsNotificationType.PositionReduced; }>; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; leverage: z.ZodNumber; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; leverage: number; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; pnl: z.ZodPipe>; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; pnl: DecimalString; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }>>, z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodPipe>; mark_price: z.ZodPipe>; liq_price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Isolated; instrument_id: PerpsInstrumentId; mark_price: DecimalString; liq_price: DecimalString; }>>, z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodNull; mark_price: z.ZodPipe>; affected_instruments: z.ZodArray>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Cross; instrument_id: null; mark_price: DecimalString; affected_instruments: PerpsInstrumentId[]; }>>], "margin_type">, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size_closed: z.ZodPipe>; pnl: z.ZodNullable>>; margin_type: z.ZodEnum; via_backstop: z.ZodBoolean; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrument_id: PerpsInstrumentId; side: PerpsSide; size_closed: DecimalString; pnl: DecimalString | null; margin_type: PerpsMarginType; via_backstop: boolean; }>>], "type">; }, z.core.$strip>, z.ZodTransform<{ type: "notification"; channel: "notifications"; timestamp: number; sequence: number; payload: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; }, { ts: EpochMilliseconds; sq: number; ch: "notifications"; data: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsNotificationUpdateEvent = z.infer; /** * Backpressure control frame on the `notifications` channel. The server sends * it when one or more notification data frames were dropped; `sq` is the * highest engine sequence among the dropped notifications. * * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsNotificationsResyncFrameSchema: z.ZodPipe; ts: z.ZodPipe>; sq: z.ZodNumber; type: z.ZodLiteral<"resync">; }, z.core.$strip>, z.ZodTransform<{ type: "resync"; channel: "notifications"; timestamp: EpochMilliseconds; sequence: number; }, { ch: "notifications"; ts: EpochMilliseconds; sq: number; type: "resync"; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsTpSlUpdateEventSchema: z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; st: z.ZodEnum<{ cancelled: "cancelled"; untriggered: "untriggered"; armed: "armed"; expired: "expired"; }>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ orderId: PerpsOrderId; status: "cancelled" | "untriggered" | "armed" | "expired"; reason: string | undefined; }, { oid: PerpsOrderId; st: "cancelled" | "untriggered" | "armed" | "expired"; reason?: string | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "tpsl"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { orderId: PerpsOrderId; status: "cancelled" | "untriggered" | "armed" | "expired"; reason: string | undefined; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { orderId: PerpsOrderId; status: "cancelled" | "untriggered" | "armed" | "expired"; reason: string | undefined; }; }>>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsTpSlUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ declare const PerpsSessionUpdateEventSchema: z.ZodUnion>; sq: z.ZodNumber; ch: z.ZodLiteral<"balances">; data: z.ZodObject<{ asset: z.ZodString; balance: z.ZodPipe>; value: z.ZodPipe>; }, z.core.$strip>; }, z.core.$strip>, z.ZodTransform<{ type: "balance"; channel: "balances"; timestamp: number; sequence: number; payload: { asset: string; balance: DecimalString; value: DecimalString; }; }, { ts: EpochMilliseconds; sq: number; ch: "balances"; data: { asset: string; balance: DecimalString; value: DecimalString; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"portfolio">; data: z.ZodPipe>; symbol: z.ZodString; size: z.ZodPipe>; entry_price: z.ZodPipe>; leverage: z.ZodNumber; cross: z.ZodBoolean; initial_margin: z.ZodPipe>; maintenance_margin: z.ZodPipe>; position_value: z.ZodPipe>; liquidation_price: z.ZodPipe>; unrealized_pnl: z.ZodPipe>; return_on_equity: z.ZodPipe>; cumulative_funding: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }, { instrument_id: PerpsInstrumentId; symbol: string; size: DecimalString; entry_price: DecimalString; leverage: number; cross: boolean; initial_margin: DecimalString; maintenance_margin: DecimalString; position_value: DecimalString; liquidation_price: DecimalString; unrealized_pnl: DecimalString; return_on_equity: DecimalString; cumulative_funding: DecimalString; }>>>; margin: z.ZodPipe>; total_initial_margin: z.ZodPipe>; total_maintenance_margin: z.ZodPipe>; total_position_value: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }, { total_account_value: DecimalString; total_initial_margin: DecimalString; total_maintenance_margin: DecimalString; total_position_value: DecimalString; }>>; withdrawable: z.ZodPipe>; in_liquidation: z.ZodBoolean; timestamp: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; inLiquidation: boolean; timestamp: EpochMilliseconds; }, { positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; in_liquidation: boolean; timestamp: EpochMilliseconds; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "portfolio"; channel: "portfolio"; timestamp: number; sequence: number; payload: { positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; inLiquidation: boolean; timestamp: EpochMilliseconds; }; }, { ts: EpochMilliseconds; sq: number; ch: "portfolio"; data: { positions: { instrumentId: PerpsInstrumentId; symbol: string; size: DecimalString; entryPrice: DecimalString; leverage: number; cross: boolean; initialMargin: DecimalString; maintenanceMargin: DecimalString; positionValue: DecimalString; liquidationPrice: DecimalString; unrealizedPnl: DecimalString; returnOnEquity: DecimalString; cumulativeFunding: DecimalString; }[]; margin: { totalAccountValue: DecimalString; totalInitialMargin: DecimalString; totalMaintenanceMargin: DecimalString; totalPositionValue: DecimalString; }; withdrawable: DecimalString; inLiquidation: boolean; timestamp: EpochMilliseconds; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"orders">; data: z.ZodPipe>; iid: z.ZodPipe>; buy: z.ZodBoolean; p: z.ZodPipe>; qty: z.ZodPipe>; tif: z.ZodEnum; po: z.ZodBoolean; ro: z.ZodBoolean; status: z.ZodEnum; rest: z.ZodPipe>; fill: z.ZodPipe>; cts: z.ZodPipe>; uts: z.ZodPipe>; coid: z.ZodOptional; tpsl: z.ZodOptional; scope: z.ZodEnum; trp: z.ZodPipe>; parent_oid: z.ZodOptional>>; armed_qty: z.ZodOptional>>; slip_bps: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; }, { kind: PerpsTpSlKind; scope: PerpsTpSlScope; trp: DecimalString; parent_oid?: PerpsOrderId | undefined; armed_qty?: DecimalString | undefined; slip_bps?: number | undefined; }>>>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }, { oid: PerpsOrderId; iid: PerpsInstrumentId; buy: boolean; p: DecimalString; qty: DecimalString; tif: PerpsTimeInForce; po: boolean; ro: boolean; status: PerpsOrderStatus; rest: DecimalString; fill: DecimalString; cts: EpochMilliseconds; uts: EpochMilliseconds; coid?: string | undefined; tpsl?: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | null | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "order"; channel: "orders"; timestamp: number; sequence: number; payload: { id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }; }, { ts: EpochMilliseconds; sq: number; ch: "orders"; data: { id: PerpsOrderId; instrumentId: PerpsInstrumentId; side: OrderSide; price: DecimalString; quantity: DecimalString; timeInForce: PerpsTimeInForce; postOnly: boolean; reduceOnly: boolean; status: PerpsOrderStatus; restingQuantity: DecimalString; filledQuantity: DecimalString; createdTimestamp: EpochMilliseconds; updatedTimestamp: EpochMilliseconds; clientOrderId: string | undefined; tpSl: { kind: PerpsTpSlKind; scope: PerpsTpSlScope; triggerPrice: DecimalString; parentOrderId: PerpsOrderId | undefined; armedQuantity: DecimalString | undefined; slippageBps: number | undefined; } | undefined; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"fills">; data: z.ZodArray>; oid: z.ZodPipe>; iid: z.ZodPipe>; side: z.ZodEnum; p: z.ZodPipe>; qty: z.ZodPipe>; taker: z.ZodBoolean; fee: z.ZodPipe>; fea: z.ZodString; psz: z.ZodPipe>; pep: z.ZodPipe>; pnl: z.ZodPipe>; liq: z.ZodBoolean; ts: z.ZodPipe>; coid: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }, { tid: PerpsTradeId; oid: PerpsOrderId; iid: PerpsInstrumentId; side: PerpsSide; p: DecimalString; qty: DecimalString; taker: boolean; fee: DecimalString; fea: string; psz: DecimalString; pep: DecimalString; pnl: DecimalString; liq: boolean; ts: EpochMilliseconds; coid?: string | undefined; }>>>; }, z.core.$strip>, z.ZodTransform<{ type: "fill"; channel: "fills"; timestamp: number; sequence: number; payload: { tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }[]; }, { ts: EpochMilliseconds; sq: number; ch: "fills"; data: { tradeId: PerpsTradeId; orderId: PerpsOrderId; instrumentId: PerpsInstrumentId; side: PerpsSide; price: DecimalString; quantity: DecimalString; taker: boolean; fee: DecimalString; feeAsset: string; previousSize: DecimalString; previousEntryPrice: DecimalString; pnl: DecimalString; liquidation: boolean; timestamp: EpochMilliseconds; clientOrderId: string | undefined; }[]; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"funding">; data: z.ZodPipe>; iid: z.ZodPipe>; sz: z.ZodPipe>; fr: z.ZodPipe>; fund: z.ZodPipe>; fua: z.ZodString; ts: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsFundingPaymentId; instrumentId: PerpsInstrumentId; size: DecimalString; fundingRate: DecimalString; fundingAsset: string; funding: DecimalString; timestamp: EpochMilliseconds; }, { id: PerpsFundingPaymentId; iid: PerpsInstrumentId; sz: DecimalString; fr: DecimalString; fund: DecimalString; fua: string; ts: EpochMilliseconds; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "funding"; channel: "funding"; timestamp: number; sequence: number; payload: { id: PerpsFundingPaymentId; instrumentId: PerpsInstrumentId; size: DecimalString; fundingRate: DecimalString; fundingAsset: string; funding: DecimalString; timestamp: EpochMilliseconds; }; }, { ts: EpochMilliseconds; sq: number; ch: "funding"; data: { id: PerpsFundingPaymentId; instrumentId: PerpsInstrumentId; size: DecimalString; fundingRate: DecimalString; fundingAsset: string; funding: DecimalString; timestamp: EpochMilliseconds; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"deposits">; data: z.ZodPipe, z.ZodOptional>>>; asset: z.ZodString; amount: z.ZodPipe>; status: z.ZodEnum; }, z.core.$strip>, z.ZodTransform<{ hash: _polymarket_types.TxHash | undefined; asset: string; amount: BaseUnits; status: PerpsDepositStatus; }, { asset: string; amount: BaseUnits; status: PerpsDepositStatus; hash?: _polymarket_types.TxHash | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "deposit"; channel: "deposits"; timestamp: number; sequence: number; payload: { hash: _polymarket_types.TxHash | undefined; asset: string; amount: BaseUnits; status: PerpsDepositStatus; }; }, { ts: EpochMilliseconds; sq: number; ch: "deposits"; data: { hash: _polymarket_types.TxHash | undefined; asset: string; amount: BaseUnits; status: PerpsDepositStatus; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"withdrawals">; data: z.ZodPipe>; asset: z.ZodString; amount: z.ZodPipe>; fee: z.ZodPipe>; status: z.ZodPipe>; to: z.ZodPipe>; hash: z.ZodPipe, z.ZodOptional>>>; }, z.core.$strip>, z.ZodTransform<{ withdrawalId: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash: _polymarket_types.TxHash | undefined; }, { withdraw_id: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash?: _polymarket_types.TxHash | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "withdrawal"; channel: "withdrawals"; timestamp: number; sequence: number; payload: { withdrawalId: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash: _polymarket_types.TxHash | undefined; }; }, { ts: EpochMilliseconds; sq: number; ch: "withdrawals"; data: { withdrawalId: PerpsWithdrawalId; asset: string; amount: BaseUnits; fee: DecimalString; status: PerpsKnownWithdrawalStatus | (string & {}); to: _polymarket_types.EvmAddress; hash: _polymarket_types.TxHash | undefined; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodLiteral<"notifications">; data: z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodEnum<{ position_opened: PerpsNotificationType.PositionOpened; position_increased: PerpsNotificationType.PositionIncreased; position_reduced: PerpsNotificationType.PositionReduced; }>; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; leverage: z.ZodNumber; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; leverage: number; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; avg_price: z.ZodPipe>; pnl: z.ZodPipe>; order_type: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avg_price: DecimalString; pnl: DecimalString; order_type?: PerpsNotificationOrderType | undefined; }>>, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size: z.ZodPipe>; price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrument_id: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; }>>, z.ZodDiscriminatedUnion<[z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodPipe>; mark_price: z.ZodPipe>; liq_price: z.ZodPipe>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Isolated; instrument_id: PerpsInstrumentId; mark_price: DecimalString; liq_price: DecimalString; }>>, z.ZodPipe>; type: z.ZodLiteral; margin_type: z.ZodLiteral; instrument_id: z.ZodNull; mark_price: z.ZodPipe>; affected_instruments: z.ZodArray>>; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; }, { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; margin_type: PerpsMarginType.Cross; instrument_id: null; mark_price: DecimalString; affected_instruments: PerpsInstrumentId[]; }>>], "margin_type">, z.ZodPipe>; type: z.ZodLiteral; instrument_id: z.ZodPipe>; side: z.ZodEnum; size_closed: z.ZodPipe>; pnl: z.ZodNullable>>; margin_type: z.ZodEnum; via_backstop: z.ZodBoolean; }, z.core.$strip>, z.ZodTransform<{ id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }, { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrument_id: PerpsInstrumentId; side: PerpsSide; size_closed: DecimalString; pnl: DecimalString | null; margin_type: PerpsMarginType; via_backstop: boolean; }>>], "type">; }, z.core.$strip>, z.ZodTransform<{ type: "notification"; channel: "notifications"; timestamp: number; sequence: number; payload: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; }, { ts: EpochMilliseconds; sq: number; ch: "notifications"; data: { id: PerpsNotificationId; type: PerpsNotificationType.PositionOpened | PerpsNotificationType.PositionIncreased | PerpsNotificationType.PositionReduced; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; leverage: number; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionClosed; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; avgPrice: DecimalString; pnl: DecimalString; orderType: PerpsNotificationOrderType | undefined; } | { id: PerpsNotificationId; type: PerpsNotificationType.LimitOrderCanceled; instrumentId: PerpsInstrumentId; side: PerpsSide; size: DecimalString; price: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Isolated; instrumentId: PerpsInstrumentId; markPrice: DecimalString; liquidationPrice: DecimalString; } | { id: PerpsNotificationId; type: PerpsNotificationType.LiquidationWarning; marginType: PerpsMarginType.Cross; markPrice: DecimalString; affectedInstruments: PerpsInstrumentId[]; } | { id: PerpsNotificationId; type: PerpsNotificationType.PositionLiquidated; instrumentId: PerpsInstrumentId; side: PerpsSide; sizeClosed: DecimalString; pnl: DecimalString | null; marginType: PerpsMarginType; viaBackstop: boolean; }; }>>, z.ZodPipe>; sq: z.ZodNumber; ch: z.ZodString; data: z.ZodPipe>; st: z.ZodEnum<{ cancelled: "cancelled"; untriggered: "untriggered"; armed: "armed"; expired: "expired"; }>; reason: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ orderId: PerpsOrderId; status: "cancelled" | "untriggered" | "armed" | "expired"; reason: string | undefined; }, { oid: PerpsOrderId; st: "cancelled" | "untriggered" | "armed" | "expired"; reason?: string | undefined; }>>; }, z.core.$strip>, z.ZodTransform<{ type: "tpsl"; channel: string; timestamp: EpochMilliseconds; sequence: number; payload: { orderId: PerpsOrderId; status: "cancelled" | "untriggered" | "armed" | "expired"; reason: string | undefined; }; }, { ts: EpochMilliseconds; sq: number; ch: string; data: { orderId: PerpsOrderId; status: "cancelled" | "untriggered" | "armed" | "expired"; reason: string | undefined; }; }>>]>; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsSessionUpdateEvent = z.infer; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsResyncEvent = { type: 'resync'; reason: 'reconnect' | 'sequence_gap'; channel?: string; previousSequence?: number; sequence?: number; }; /** * @experimental This API may change in a breaking way in any release, including patch releases. */ type PerpsSessionEvent = PerpsSessionUpdateEvent | PerpsResyncEvent; declare const CommentRemovedPayloadSchema: z.ZodObject<{ id: z.ZodString; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>; parentCommentID: z.ZodOptional>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; type CommentRemovedPayload = z.infer; declare const CommentCreatedEventSchema: z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"comment_created">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodPipe>; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>, z.ZodTransform>]>>>; parentCommentID: z.ZodOptional>>>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; updatedAt: z.ZodOptional>, z.ZodPipe>]>>>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; type CommentCreatedEvent = z.infer; declare const CommentRemovedEventSchema: z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"comment_removed">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>; parentCommentID: z.ZodOptional>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; type CommentRemovedEvent = z.infer; declare const ReactionCreatedEventSchema: z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"reaction_created">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; commentID: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>; }, z.core.$strip>; type ReactionCreatedEvent = z.infer; declare const ReactionRemovedEventSchema: z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"reaction_removed">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; commentID: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>; }, z.core.$strip>; type ReactionRemovedEvent = z.infer; declare const PriceUpdatePayloadSchema: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; type PriceUpdatePayload = z.infer; declare const CRYPTO_PRICES_BINANCE_TOPIC: "prices.crypto.binance"; declare const CRYPTO_PRICES_CHAINLINK_TOPIC: "prices.crypto.chainlink"; declare const CRYPTO_PRICES_CHAINLINK_TWAP_TOPIC: "prices.crypto.chainlink.twap"; type CryptoPricesBinanceTopic = typeof CRYPTO_PRICES_BINANCE_TOPIC; type CryptoPricesChainlinkTopic = typeof CRYPTO_PRICES_CHAINLINK_TOPIC; type CryptoPricesChainlinkTwapTopic = typeof CRYPTO_PRICES_CHAINLINK_TWAP_TOPIC; type CryptoPricesChainlinkTwapWindowSeconds = 30 | 60; type CryptoPricesTopic = CryptoPricesBinanceTopic | CryptoPricesChainlinkTopic; declare const CryptoPricesBinanceEventSchema: z.ZodObject<{ topic: z.ZodType<"prices.crypto.binance", unknown, z.core.$ZodTypeInternals<"prices.crypto.binance", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; }, z.core.$strip>; type CryptoPricesBinanceEvent = z.infer; declare const CryptoPricesChainlinkEventSchema: z.ZodObject<{ topic: z.ZodType<"prices.crypto.chainlink", unknown, z.core.$ZodTypeInternals<"prices.crypto.chainlink", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; }, z.core.$strip>; type CryptoPricesChainlinkEvent = z.infer; declare const CryptoPricesChainlinkTwapThirtyEventSchema: z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<30>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 30; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 30; }>>; }, z.core.$strip>; type CryptoPricesChainlinkTwapThirtyEvent = z.infer; declare const CryptoPricesChainlinkTwapSixtyEventSchema: z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<60>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 60; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 60; }>>; }, z.core.$strip>; type CryptoPricesChainlinkTwapSixtyEvent = z.infer; declare const CryptoPricesChainlinkTwapEventSchema: z.ZodUnion, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<30>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 30; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 30; }>>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<60>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 60; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 60; }>>; }, z.core.$strip>]>; type CryptoPricesChainlinkTwapEvent = z.infer; declare const CryptoPricesEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ topic: z.ZodType<"prices.crypto.binance", unknown, z.core.$ZodTypeInternals<"prices.crypto.binance", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodType<"prices.crypto.chainlink", unknown, z.core.$ZodTypeInternals<"prices.crypto.chainlink", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<30>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 30; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 30; }>>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<60>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 60; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 60; }>>; }, z.core.$strip>], "topic">; type CryptoPricesEvent = z.infer; declare const EquityPriceUpdatePayloadSchema: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodOptional>>>; timestamp: z.ZodPipe>; received_at: z.ZodOptional>>>; is_carried_forward: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ value: DecimalString; receivedAt: EpochMilliseconds | null | undefined; isCarriedForward: boolean | null | undefined; symbol: string; timestamp: EpochMilliseconds; }, { symbol: string; value: DecimalString; timestamp: EpochMilliseconds; full_accuracy_value?: DecimalString | null | undefined; received_at?: EpochMilliseconds | null | undefined; is_carried_forward?: boolean | null | undefined; }>>; type EquityPriceUpdatePayload = z.infer; declare const EquityPriceSnapshotPointSchema: z.ZodObject<{ timestamp: z.ZodNumber; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; type EquityPriceSnapshotPoint = z.infer; declare const EquityPriceSubscribePayloadSchema: z.ZodObject<{ symbol: z.ZodString; data: z.ZodArray>, z.ZodPipe>]>; }, z.core.$strip>>; }, z.core.$strip>; type EquityPriceSubscribePayload = z.infer; declare const EQUITY_PRICES_TOPIC: "prices.equity.pyth"; type EquityPricesTopic = typeof EQUITY_PRICES_TOPIC; declare const EquityPricesUpdateEventSchema: z.ZodObject<{ topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodOptional>>>; timestamp: z.ZodPipe>; received_at: z.ZodOptional>>>; is_carried_forward: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ value: DecimalString; receivedAt: EpochMilliseconds | null | undefined; isCarriedForward: boolean | null | undefined; symbol: string; timestamp: EpochMilliseconds; }, { symbol: string; value: DecimalString; timestamp: EpochMilliseconds; full_accuracy_value?: DecimalString | null | undefined; received_at?: EpochMilliseconds | null | undefined; is_carried_forward?: boolean | null | undefined; }>>; }, z.core.$strip>; type EquityPricesUpdateEvent = z.infer; declare const EquityPricesSubscribeEventSchema: z.ZodObject<{ topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>; type: z.ZodLiteral<"subscribe">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; data: z.ZodArray>, z.ZodPipe>]>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>; type EquityPricesSubscribeEvent = z.infer; declare const EquityPricesEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodOptional>>>; timestamp: z.ZodPipe>; received_at: z.ZodOptional>>>; is_carried_forward: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ value: DecimalString; receivedAt: EpochMilliseconds | null | undefined; isCarriedForward: boolean | null | undefined; symbol: string; timestamp: EpochMilliseconds; }, { symbol: string; value: DecimalString; timestamp: EpochMilliseconds; full_accuracy_value?: DecimalString | null | undefined; received_at?: EpochMilliseconds | null | undefined; is_carried_forward?: boolean | null | undefined; }>>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>; type: z.ZodLiteral<"subscribe">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; data: z.ZodArray>, z.ZodPipe>]>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>], "type">; type EquityPricesEvent = z.infer; declare const CommentsEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"comment_created">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodPipe>; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>, z.ZodTransform>]>>>; parentCommentID: z.ZodOptional>>>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; updatedAt: z.ZodOptional>, z.ZodPipe>]>>>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"comment_removed">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>; parentCommentID: z.ZodOptional>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"reaction_created">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; commentID: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"reaction_removed">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; commentID: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>; }, z.core.$strip>], "type">; type CommentsEvent = z.infer; declare const RealtimeEventSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"comment_created">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodPipe>; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>, z.ZodTransform>]>>>; parentCommentID: z.ZodOptional>>>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; updatedAt: z.ZodOptional>, z.ZodPipe>]>>>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"comment_removed">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; body: z.ZodOptional>; parentEntityType: z.ZodOptional>>; parentEntityID: z.ZodOptional>; parentCommentID: z.ZodOptional>; userAddress: z.ZodOptional>; replyAddress: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; media: z.ZodOptional>; provider: z.ZodOptional>; providerMediaId: z.ZodOptional>; url: z.ZodOptional>; mediaType: z.ZodOptional>; altText: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; }, z.core.$strip>>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; reactions: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>>>>; reportCount: z.ZodOptional>; reactionCount: z.ZodOptional>; tradeAsset: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"reaction_created">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; commentID: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodLiteral<"comments">; type: z.ZodLiteral<"reaction_removed">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ id: z.ZodString; commentID: z.ZodOptional>; reactionType: z.ZodOptional>>; icon: z.ZodOptional>; userAddress: z.ZodOptional>; createdAt: z.ZodOptional>, z.ZodPipe>]>>>; profile: z.ZodOptional>; pseudonym: z.ZodOptional>; displayUsernamePublic: z.ZodOptional>; bio: z.ZodOptional>; isMod: z.ZodOptional>; isCreator: z.ZodOptional>; proxyWallet: z.ZodOptional>; baseAddress: z.ZodOptional>; profileImage: z.ZodOptional>; profileImageOptimized: z.ZodOptional>; imageUrlSource: z.ZodOptional>; imageUrlOptimized: z.ZodOptional>; imageSizeKbSource: z.ZodOptional>; imageSizeKbOptimized: z.ZodOptional>; imageOptimizedComplete: z.ZodOptional>; imageOptimizedLastUpdated: z.ZodOptional>, z.ZodPipe>]>>>; relID: z.ZodOptional>; field: z.ZodOptional>; relname: z.ZodOptional>; }, z.core.$strip>>>; positions: z.ZodOptional>>>; positionSize: z.ZodOptional>>>; }, z.core.$strip>>>>; }, z.core.$strip>, z.ZodTransform<{ wallet: string | null | undefined; name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }, { name?: string | null | undefined; pseudonym?: string | null | undefined; displayUsernamePublic?: boolean | null | undefined; bio?: string | null | undefined; isMod?: boolean | null | undefined; isCreator?: boolean | null | undefined; proxyWallet?: string | null | undefined; baseAddress?: string | null | undefined; profileImage?: string | null | undefined; profileImageOptimized?: { id: ImageOptimizationId; imageUrlSource?: string | null | undefined; imageUrlOptimized?: string | null | undefined; imageSizeKbSource?: number | null | undefined; imageSizeKbOptimized?: number | null | undefined; imageOptimizedComplete?: boolean | null | undefined; imageOptimizedLastUpdated?: IsoDateTimeString | null | undefined; relID?: number | null | undefined; field?: string | null | undefined; relname?: string | null | undefined; } | null | undefined; positions?: { tokenId?: TokenId | null | undefined; positionSize?: BaseUnits | null | undefined; }[] | null | undefined; }>>>>; }, z.core.$strip>; }, z.core.$strip>], "type">, z.ZodDiscriminatedUnion<[z.ZodObject<{ topic: z.ZodType<"prices.crypto.binance", unknown, z.core.$ZodTypeInternals<"prices.crypto.binance", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodType<"prices.crypto.chainlink", unknown, z.core.$ZodTypeInternals<"prices.crypto.chainlink", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; timestamp: z.ZodPipe>; value: z.ZodUnion>, z.ZodPipe>]>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_thirty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<30>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 30; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 30; }>>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodPipe, z.ZodTransform<"prices.crypto.chainlink.twap", "crypto_prices_twap_sixty">>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodPipe>; timestamp: z.ZodPipe>; window_s: z.ZodLiteral<60>; }, z.core.$strip>, z.ZodTransform<{ symbol: string; timestamp: EpochMilliseconds; value: DecimalString; windowSeconds: 60; }, { symbol: string; value: DecimalString; full_accuracy_value: DecimalString; timestamp: EpochMilliseconds; window_s: 60; }>>; }, z.core.$strip>], "topic">, z.ZodDiscriminatedUnion<[z.ZodObject<{ topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>; type: z.ZodLiteral<"update">; timestamp: z.ZodPipe>; payload: z.ZodPipe>, z.ZodPipe>]>; full_accuracy_value: z.ZodOptional>>>; timestamp: z.ZodPipe>; received_at: z.ZodOptional>>>; is_carried_forward: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ value: DecimalString; receivedAt: EpochMilliseconds | null | undefined; isCarriedForward: boolean | null | undefined; symbol: string; timestamp: EpochMilliseconds; }, { symbol: string; value: DecimalString; timestamp: EpochMilliseconds; full_accuracy_value?: DecimalString | null | undefined; received_at?: EpochMilliseconds | null | undefined; is_carried_forward?: boolean | null | undefined; }>>; }, z.core.$strip>, z.ZodObject<{ topic: z.ZodType<"prices.equity.pyth", unknown, z.core.$ZodTypeInternals<"prices.equity.pyth", unknown>>; type: z.ZodLiteral<"subscribe">; timestamp: z.ZodPipe>; payload: z.ZodObject<{ symbol: z.ZodString; data: z.ZodArray>, z.ZodPipe>]>; }, z.core.$strip>>; }, z.core.$strip>; }, z.core.$strip>], "type">], "topic">; type RealtimeEvent = z.infer; declare const SportsResultEventSchema: z.ZodPipe>; slug: z.ZodOptional>; leagueAbbreviation: z.ZodString; homeTeam: z.ZodOptional>; awayTeam: z.ZodOptional>; status: z.ZodString; live: z.ZodBoolean; ended: z.ZodBoolean; score: z.ZodString; period: z.ZodOptional>; elapsed: z.ZodOptional>; finishedTimestamp: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; finished_timestamp: z.ZodOptional>]>, z.ZodTransform>, z.ZodPipe>]>>>; turn: z.ZodOptional>; }, z.core.$strip>, z.ZodTransform<{ finishedAt: IsoDateTimeString | null | undefined; gameId: number; leagueAbbreviation: string; status: string; live: boolean; ended: boolean; score: string; sportradarGameId?: string | null | undefined; slug?: string | null | undefined; homeTeam?: string | null | undefined; awayTeam?: string | null | undefined; period?: string | null | undefined; elapsed?: string | null | undefined; turn?: string | null | undefined; }, { gameId: number; leagueAbbreviation: string; status: string; live: boolean; ended: boolean; score: string; sportradarGameId?: string | null | undefined; slug?: string | null | undefined; homeTeam?: string | null | undefined; awayTeam?: string | null | undefined; period?: string | null | undefined; elapsed?: string | null | undefined; finishedTimestamp?: IsoDateTimeString | null | undefined; finished_timestamp?: IsoDateTimeString | null | undefined; turn?: string | null | undefined; }>>, z.ZodTransform<{ topic: "sports"; type: "sport_result"; payload: { finishedAt: IsoDateTimeString | null | undefined; gameId: number; leagueAbbreviation: string; status: string; live: boolean; ended: boolean; score: string; sportradarGameId?: string | null | undefined; slug?: string | null | undefined; homeTeam?: string | null | undefined; awayTeam?: string | null | undefined; period?: string | null | undefined; elapsed?: string | null | undefined; turn?: string | null | undefined; }; }, { finishedAt: IsoDateTimeString | null | undefined; gameId: number; leagueAbbreviation: string; status: string; live: boolean; ended: boolean; score: string; sportradarGameId?: string | null | undefined; slug?: string | null | undefined; homeTeam?: string | null | undefined; awayTeam?: string | null | undefined; period?: string | null | undefined; elapsed?: string | null | undefined; turn?: string | null | undefined; }>>; type SportsEvent = z.infer; export { type CommentCreatedEvent, CommentCreatedEventSchema, type CommentRemovedEvent, CommentRemovedEventSchema, type CommentRemovedPayload, type CommentsEvent, CommentsEventSchema, type CryptoPricesBinanceEvent, CryptoPricesBinanceEventSchema, type CryptoPricesBinanceTopic, type CryptoPricesChainlinkEvent, CryptoPricesChainlinkEventSchema, type CryptoPricesChainlinkTopic, type CryptoPricesChainlinkTwapEvent, CryptoPricesChainlinkTwapEventSchema, type CryptoPricesChainlinkTwapSixtyEvent, CryptoPricesChainlinkTwapSixtyEventSchema, type CryptoPricesChainlinkTwapThirtyEvent, CryptoPricesChainlinkTwapThirtyEventSchema, type CryptoPricesChainlinkTwapTopic, type CryptoPricesChainlinkTwapWindowSeconds, type CryptoPricesEvent, CryptoPricesEventSchema, type CryptoPricesTopic, type CustomMarketEvent, CustomMarketEventSchema, type EquityPriceSnapshotPoint, type EquityPriceSubscribePayload, type EquityPriceUpdatePayload, type EquityPricesEvent, EquityPricesEventSchema, type EquityPricesSubscribeEvent, EquityPricesSubscribeEventSchema, type EquityPricesTopic, type EquityPricesUpdateEvent, EquityPricesUpdateEventSchema, type MarketBestBidAskEvent, MarketBestBidAskEventSchema, type MarketBookEvent, MarketBookEventSchema, type MarketEvent, type MarketEventMessage, MarketEventSchema, type MarketLastTradePriceEvent, MarketLastTradePriceEventSchema, type MarketPriceChangeEvent, MarketPriceChangeEventSchema, type MarketResolvedEvent, MarketResolvedEventSchema, type MarketTickSizeChangeEvent, MarketTickSizeChangeEventSchema, type NewMarketEvent, NewMarketEventSchema, type OrderBookLevel, type PerpsBalanceUpdateEvent, PerpsBalanceUpdateEventSchema, type PerpsBboEvent, PerpsBboEventSchema, type PerpsBookEvent, PerpsBookEventSchema, type PerpsCandleEvent, PerpsCandleEventSchema, type PerpsDepositUpdateEvent, PerpsDepositUpdateEventSchema, type PerpsFillUpdateEvent, PerpsFillUpdateEventSchema, type PerpsFundingUpdateEvent, PerpsFundingUpdateEventSchema, type PerpsMarketDataEvent, PerpsMarketDataEventSchema, type PerpsNotificationUpdateEvent, PerpsNotificationUpdateEventSchema, PerpsNotificationsResyncFrameSchema, type PerpsOrderUpdateEvent, PerpsOrderUpdateEventSchema, type PerpsPortfolioUpdateEvent, PerpsPortfolioUpdateEventSchema, type PerpsResyncEvent, type PerpsSessionEvent, type PerpsSessionUpdateEvent, PerpsSessionUpdateEventSchema, type PerpsStatisticEvent, PerpsStatisticEventSchema, type PerpsTickerEvent, PerpsTickerEventSchema, type PerpsTpSlUpdateEvent, PerpsTpSlUpdateEventSchema, type PerpsTradeEvent, PerpsTradeEventSchema, type PerpsWithdrawalUpdateEvent, PerpsWithdrawalUpdateEventSchema, type PriceChange, type PriceUpdatePayload, type ReactionCreatedEvent, ReactionCreatedEventSchema, type ReactionRemovedEvent, ReactionRemovedEventSchema, type RealtimeEvent, RealtimeEventSchema, type SportsEvent, SportsResultEventSchema, type StandardMarketEvent, StandardMarketEventSchema, type TradeMakerOrder, TradeStatus, type UserEvent, UserEventSchema, type UserOrderEvent, UserOrderEventSchema, UserOrderEventType, UserOrderStatus, type UserTradeEvent, UserTradeEventSchema };