/** * Conversion functions between v1 and v2 external match types. * * Ported from Rust SDK's v1_conversions.rs. */ import { ExternalMatchResponse, type ExternalOrder, GetDepthForAllPairsResponse, OrderBookDepth, OrderSide, SignedExternalQuote, type SupportedTokensResponse, type TokenPricesResponse } from "./types/index.js"; import type { ApiSignedQuoteV2, ExternalMatchResponseV2, ExternalOrderV2, ExternalQuoteResponseV2, GetMarketDepthByMintResponse, GetMarketDepthsResponse, GetMarketsResponse } from "./types/v2Types.js"; export declare function v1OrderToV2(order: ExternalOrder): ExternalOrderV2; export declare function v2QuoteToV1(v2Response: ExternalQuoteResponseV2, originalOrder: ExternalOrder): SignedExternalQuote; export declare function v1QuoteToV2(v1Quote: SignedExternalQuote): ApiSignedQuoteV2; export declare function v2ResponseToV1NonMalleable(v2Resp: ExternalMatchResponseV2, direction: OrderSide): ExternalMatchResponse; export declare function marketsToSupportedTokens(resp: GetMarketsResponse): SupportedTokensResponse; export declare function marketsToTokenPrices(resp: GetMarketsResponse): TokenPricesResponse; export declare function marketDepthToV1(resp: GetMarketDepthByMintResponse): OrderBookDepth; export declare function marketDepthsToV1(resp: GetMarketDepthsResponse): GetDepthForAllPairsResponse; //# sourceMappingURL=v1Conversions.d.ts.map