import type { IOHLCV, OHLCV, TradeTick, Trade } from './types'; /** * Resample OHLCV to different timeframe * @param ohlcvData * @param options * @param options.baseTimeframe * @param options.newTimeframe */ export declare const resampleOhlcv: (ohlcvData: OHLCV[] | IOHLCV[], { baseTimeframe, newTimeframe }: { baseTimeframe: number; newTimeframe: number; }) => OHLCV[] | IOHLCV[]; /** * Resample OHLCV in object format to different timeframe * @param candledata * @param baseFrame * @param newFrame */ export declare const resampleOhlcvArray: (candledata: OHLCV[] | ReadableStream, baseFrame?: number, newFrame?: number) => OHLCV[]; /** * Aggregate group of ticks to one OHLCV object * @param time * @param ticks */ export declare const tickGroupToOhlcv: (time: number, ticks: Array) => { time: number; open: number; high: number; low: number; close: number; volume: number; }; /** * Make gap candles from boundary candles if needed * @param lastCandle * @param nextCandle * @param options * @param options.method * @param options.msTimeframe */ export declare const makeGapCandles: (lastCandle: IOHLCV, nextCandle: IOHLCV, { method, msTimeframe }: { method?: string | undefined; msTimeframe: number; }) => IOHLCV[]; /** * Convert ticks for candles grouped by intervals in seconds or tick count * @param tickData * @param options * @param options.timeframe * @param options.includeLatestCandle * @param options.fillGaps */ export declare const resampleTicksByTime: (tickData: Trade[], { timeframe, includeLatestCandle, fillGaps }?: { timeframe?: number | undefined; includeLatestCandle?: boolean | undefined; fillGaps?: boolean | undefined; }) => IOHLCV[]; /** * Covert ticks to candles by linear groups * @param tickData * @param options * @param options.tickCount */ export declare const resampleTicksByCount: (tickData: Trade[], { tickCount }?: { tickCount?: number | undefined; }) => IOHLCV[];