import { Operation, OperationType } from "@ledgerhq/types-live"; import { type NearConfig } from "../config"; import { NearTransaction } from "./sdk.types"; /** * One page of account transactions. `next` is the indexer's own opaque cursor, forwarded as-is so * callers can resume without knowing its encoding. */ export declare const fetchTransactionsPage: (config: NearConfig, address: string, options?: { cursor?: string; limit?: number; }) => Promise<{ transactions: NearTransaction[]; next?: string; }>; /** The indexer lists a transaction before it records its outcome: its fee and status are not final. */ export declare const isOutcomePending: (transaction: NearTransaction) => boolean; /** * Another account signed, on behalf of this one, a transaction whose inner actions call a staking * pool (a relayed staking call): the indexer lists the inner methods but not the pool they call. * Relayed calls to anything else (claims, transfers) are left out, so they cost no pool listing. */ export declare const isRelayedCall: (transaction: NearTransaction, address: string) => boolean; export declare function getOperationType(transaction: NearTransaction, address: string): OperationType; export declare const isStakingPoolMethod: (method: string | null) => boolean; export type LegacyHistory = { operations: Operation[]; /** Pool called by each transaction the account signed that has a staking-pool action. */ stakingPoolsCalled: Map; /** The read stopped before a known transaction, so older ones may exist that it did not see. */ isFullPage: boolean; /** * The bound stopped the read before it reached a known transaction: the read and the stored * history do not join, so the stored one is replaced rather than merged across the gap. */ gap: boolean; /** Transactions whose outcome the indexer had not recorded when read. */ outcomePendingHashes: string[]; /** Transactions another account relayed for this one. */ relayedHashes: string[]; }; /** * The history the legacy sync reads, plus what the sync needs to decide whether the staking pools * must be listed again. The operation type shown to users still follows the first action only, * whereas a staking call can sit in any action of a transaction. */ export declare const fetchLegacyHistory: (config: NearConfig, accountId: string, address: string, knownHashes?: ReadonlySet, unsettledHashes?: ReadonlySet) => Promise; export declare const getOperations: (config: NearConfig, accountId: string, address: string) => Promise; //# sourceMappingURL=indexer.d.ts.map