import { Resolution } from "../../shared"; import { type LightconeHttp } from "../../http"; import type { DepositAssetPricesSnapshotResponse, DepositTokenPriceHistoryResponse, OrderbookPriceHistoryResponse } from "./wire"; interface ClientContext { http: LightconeHttp; } export interface OrderbookPriceHistoryQuery { resolution?: Resolution; from?: number; to?: number; cursor?: number; limit?: number; includeOhlcv?: boolean; } export interface DepositPriceHistoryQuery { resolution?: Resolution; from?: number; to?: number; cursor?: number; limit?: number; } export declare class PriceHistoryClient { private readonly client; constructor(client: ClientContext); get(orderbookId: string, resolution?: Resolution, from?: number, to?: number): Promise; get(orderbookId: string, query?: OrderbookPriceHistoryQuery): Promise; getDepositAsset(depositAsset: string, resolution?: Resolution, from?: number, to?: number, cursor?: number, limit?: number): Promise; getDepositAsset(depositAsset: string, query?: DepositPriceHistoryQuery): Promise; /** * Snapshot of current prices for every active mint in `global_deposit_tokens`. * * No params. Returns a map of mint -> price (Decimal-as-string). The * backend prefers the live tick from `deposit_token_prices` and falls * back to the most recent 1m candle close. Assets with neither are * silently absent. * * For live updates, subscribe via `subscribeDepositAssetPrice` per asset. */ getDepositAssetPricesSnapshot(): Promise; getLineData(orderbookId: string, resolution?: Resolution, from?: number, to?: number, cursor?: number, limit?: number): Promise<{ time: number; value: string; }[]>; } export {}; //# sourceMappingURL=client.d.ts.map