import { DerivativeTicker, Exchange, FilterForExchange, NormalizedData } from '../types.ts'; export type Mapper = { canHandle: (message: any) => boolean; map(message: any, localTimestamp: Date): IterableIterator | undefined; /** * Returns the channel filters this mapper needs for the requested symbols. * * Replay and streaming pass `[]` when no symbols are requested; `[]` means all symbols. * Every returned filter carries a `symbols` array: the requested symbols, or their * channel-specific identifiers. Do not narrow them by instrument type; `map` decides output. */ getFilters: (symbols?: string[]) => FilterForExchange[T][]; }; export type MapperFactory = ((exchange: T, localTimestamp: Date) => Mapper) & { getSwitchDates?: (exchange: T) => readonly Date[]; }; export declare class PendingTickerInfoHelper { private readonly _pendingTickers; getPendingTickerInfo(symbol: string, exchange: Exchange): PendingDerivativeTickerInfo; hasPendingTickerInfo(symbol: string): boolean; } declare class PendingDerivativeTickerInfo { private _pendingTicker; private _hasChanged; constructor(symbol: string, exchange: Exchange); getCurrentFundingTimestamp(): Date | undefined; updateOpenInterest(openInterest: number | undefined | null): void; updateMarkPrice(markPrice: number | undefined | null): void; updateFundingRate(fundingRate: number | undefined | null): void; updatePredictedFundingRate(predictedFundingRate: number | undefined | null): void; updateFundingTimestamp(fundingTimestamp: Date | undefined | null): void; updateIndexPrice(indexPrice: number | undefined | null): void; updateLastPrice(lastPrice: number | undefined | null): void; updateTimestamp(timestamp: Date): void; hasChanged(): boolean; getSnapshot(localTimestamp: Date): DerivativeTicker; } export {}; //# sourceMappingURL=mapper.d.ts.map