import type { OrderBase } from '@lifi/perps-types'; import { type HlExplorerTx } from '../types/explorer.js'; import { type InfoRequestOptions } from './infoClient.js'; /** * Read the address's recent HyperCore transactions from the explorer RPC. * * The surface is undocumented, so it is read defensively: an address the * explorer has never indexed answers `200` with no `txs` array, and each entry * is checked on its own so one drifted entry cannot drop the rest. * * @throws {PerpsError} On a non-2xx status or a transport failure. * @public */ export declare const fetchUserTransactions: (address: string, options?: InfoRequestOptions) => Promise; /** * Every client order id an action names: `orders[].c` on a placement, `order.c` * on a single modify, and `modifies[].order.c` on a batch modify. A batched * placement names one id per leg, so every id is returned, not just the first. * * @public */ export declare const getClientOrderIds: (action: Record) => string[]; /** * The hash of the transaction whose action names the order's client order id. * * @returns The transaction hash, or `undefined` when the order carries no * client order id or no transaction in the window names it. * @public */ export declare const matchOrderActionHash: (txs: HlExplorerTx[], order: Pick) => string | undefined; //# sourceMappingURL=explorer.d.ts.map