import { Signer } from 'ethers'; import { Config } from '../config/Config.js'; import { Datatoken } from '../contracts/Datatoken.js'; import { ConsumeMarketFee } from '../@types/Datatoken.js'; import { ProviderFees } from '../@types/Provider.js'; import { type Asset } from '@oceanprotocol/ddo-js'; /** * Orders an asset based on the specified pricing schema and configuration. * @param {Asset} asset - The asset to be ordered. * @param {Signer} consumerAccount - The signer account of the consumer. * @param {Config} config - The configuration settings. * @param {Datatoken} datatoken - The Datatoken instance. * @param {string} [providerUrl] - Optional the consumer address * @param {string} [consumerAccount] - Optional the consumer address * @param {ConsumeMarketFee} [consumeMarketOrderFee] - Optional consume market fee. * @param {ProviderFees} [providerFees] - Optional provider fees * @param {string} [consumeMarketFixedSwapFee='0'] - Fixed swap fee for consuming the market. * @param {number} [datatokenIndex=0] - Index of the datatoken within the asset. * @param {number} [serviceIndex=0] - Index of the service within the asset. * @param {number} [fixedRateIndex=0] - Index of the fixed rate within the pricing schema. * @returns {Promise} - A promise that resolves when the asset order process is completed. * @throws {Error} If the pricing schema is not supported or if required indexes are invalid. */ export declare function orderAsset(asset: Asset, consumerAccount: Signer, config: Config, datatoken: Datatoken, providerUrl?: string, consumerAddress?: string, consumeMarketOrderFee?: ConsumeMarketFee, providerFees?: ProviderFees, consumeMarketFixedSwapFee?: string, datatokenIndex?: number, serviceIndex?: number, fixedRateIndex?: number): Promise;