import type { MarketsResponse } from '@lifi/perps-types'; import type { SDKRequestOptions } from '../types/config.js'; import type { PerpsSDKClient } from '../types/provider.js'; /** * Parameters for {@link getMarkets}. * * @public */ export interface GetMarketsParams { provider: string; /** Optional filter — opaque `Market.id`s (not display symbols). */ marketIds?: string[]; } /** * Get all available markets for a provider. Thin pass-through to the LI.FI * backend's Valkey-cached `/perps/markets` route — the canonical source of * public market data for widget consumers. * * @throws {PerpsError} On backend, network, or parsing errors. * @example * ```ts * const client = createPerpsClient({ integrator: 'my-app' }) * const { markets } = await getMarkets(client, { provider: 'hyperliquid' }) * ``` * @public */ export declare function getMarkets(client: PerpsSDKClient, params: GetMarketsParams, options?: SDKRequestOptions): Promise; //# sourceMappingURL=getMarkets.d.ts.map