import { ApiPromise } from "@polkadot/api"; import { SubmittableExtrinsic } from "@polkadot/api/promise/types.js"; import { LocType, ValidAccountId } from "./Types.js"; import { Lgnt } from "./Currency.js"; export declare class Fees { static zero(): Fees; static addAll(...fees: Fees[]): Fees; constructor(params: { inclusionFee: Lgnt; storageFee?: Lgnt; legalFee?: Lgnt; certificateFee?: Lgnt; valueFee?: Lgnt; collectionItemFee?: Lgnt; tokensRecordFee?: Lgnt; }); readonly inclusionFee: Lgnt; readonly storageFee?: Lgnt; readonly legalFee?: Lgnt; readonly certificateFee?: Lgnt; readonly valueFee?: Lgnt; readonly collectionItemFee?: Lgnt; readonly tokensRecordFee?: Lgnt; get totalFee(): Lgnt; multiply(times: bigint): Fees; private multiplyFee; add(fee: Fees): Fees; private addFee; } export declare class FeesEstimator { constructor(api: ApiPromise); private readonly api; estimateWithStorage(params: { origin: ValidAccountId; submittable: SubmittableExtrinsic; size: bigint; }): Promise; private estimateInclusionFee; estimateStorageFee(params: { numOfEntries: bigint; totSize: bigint; }): Promise; getDefaultLegalFee(params: { locType: LocType; }): Lgnt; estimateWithoutStorage(params: { origin: ValidAccountId; submittable: SubmittableExtrinsic; }): Promise; estimateCreateLoc(params: { origin: ValidAccountId; submittable: SubmittableExtrinsic; locType: LocType; valueFee?: Lgnt; legalFee?: Lgnt; storageSize?: bigint; }): Promise; estimateCertificateFee(params: { tokenIssuance: bigint; }): Promise; estimateAddCollectionItem(params: { origin: ValidAccountId; submittable: SubmittableExtrinsic; numOfEntries: bigint; totSize: bigint; tokenIssuance: bigint | undefined; collectionItemFee: Lgnt; }): Promise; estimateAddTokensRecord(params: { origin: ValidAccountId; submittable: SubmittableExtrinsic; numOfEntries: bigint; totSize: bigint; tokensRecordFee: Lgnt; }): Promise; ensureEnoughFunds(params: { fees: Fees; origin: ValidAccountId; }): Promise; }