import type { OrdersResponse } from '@lifi/perps-types'; import type { Address } from 'viem'; import type { SDKRequestOptions } from '../types/config.js'; import type { PerpsSDKClient } from '../types/provider.js'; /** * Parameters for {@link getOrders}. * * @public */ export interface GetOrdersParams { provider: string; address: Address; /** Optional filter — opaque `Market.id` (not `displaySymbol`) */ marketId?: string; limit?: number; cursor?: string; } /** * Get open orders and trigger orders for an account. Delegates to the * registered venue plugin (direct-to-venue); requires the provider plugin to be * registered on the client. * * @throws {PerpsError} When the provider plugin is not registered, or on * backend / network / parsing errors. * @example * ```ts * const { openOrders, triggerOrders } = await getOrders(client, { * provider: 'hyperliquid', * address: '0x1234...', * }) * ``` * @public */ export declare function getOrders(client: PerpsSDKClient, params: GetOrdersParams, options?: SDKRequestOptions): Promise; //# sourceMappingURL=getOrders.d.ts.map