import type { TypedDataField } from '@ethersproject/abstract-signer'; import { Contract } from '@ethersproject/contracts'; import { ChainId, OnChainTrade, Trade, TradeAsset, TradeAssetType, TradeCreation } from '@dcl/schemas'; import { ContractData } from 'decentraland-transactions'; export declare const OFFCHAIN_MARKETPLACE_TYPES: Record; /** * The newest off-chain marketplace deployed on a chain. * * `getContract` THROWS for a version that is not deployed on the given chain rather than returning a * falsy value, which is why each candidate is tried in turn. */ export declare function getLatestOffChainMarketplaceContract(chainId: ChainId): ContractData; export declare function getOffChainMarketplaceContract(chainId: ChainId): Promise; export declare function getValueForTradeAsset(asset: TradeAsset): string; export declare function generateTradeValues(trade: Omit): { checks: { uses: number; expiration: number; effective: number; salt: string; contractSignatureIndex: number; signerSignatureIndex: number; allowedRoot: string; externalChecks: { contractAddress: string; selector: string; value: string; required: boolean; }[]; }; sent: { assetType: TradeAssetType; contractAddress: string; value: string; extra: string; }[]; received: { assetType: TradeAssetType; contractAddress: string; value: string; extra: string; beneficiary: string; }[]; }; export declare function getOnChainTrade(trade: Trade, sentBeneficiaryAddress: string): OnChainTrade; export declare function getTradeSignature(trade: Omit): Promise;