import { ApiPromise } from "@polkadot/api"; import { Call, FunctionMetadataLatest } from "@polkadot/types/interfaces"; import { FrameSystemAccountInfo, LogionRuntimeRegion, PalletLoAuthorityListHostDataParam, PalletLoAuthorityListLegalOfficerData, PalletLoAuthorityListLegalOfficerDataParam, PalletLogionLocFileParams, PalletLogionLocLegalOfficerCase, PalletLogionLocCollectionItem, PalletLogionLocTokensRecordFile, PalletLogionLocTokensRecord, PalletLogionLocOtherAccountId, PalletLogionLocSupportedAccountId, PalletLogionLocMetadataItemParams, PalletLogionLocSponsorship, PalletLogionLocLocLinkParams, PalletLogionLocItemsParams } from '@polkadot/types/lookup'; import type { SubmittableExtrinsic } from '@polkadot/api/promise/types'; import { ISubmittableResult } from "@polkadot/types/types"; import { Compact, Vec, u128 } from "@polkadot/types-codec"; import { CallBase, AnyTuple, AnyJson } from "@polkadot/types-codec/types"; import { DispatchError } from '@polkadot/types/interfaces/system/types'; import { TypesAccountData, FileParams, LegalOfficerCase, TypesJsonObject, TypesJsonCall, TypesErrorMetadata, TypesEvent, CollectionItem, ItemFile, TermsAndConditionsElement, TypesTokensRecordFile, TypesTokensRecord, ValidAccountId, OtherAccountId, MetadataItemParams, Sponsorship, AccountType, HostData, Region, LinkParams, ItemToken } from "./Types.js"; import { UUID } from "./UUID.js"; import { HexString } from "@polkadot/util/types.js"; import { H256 } from "./interfaces/types.js"; import { Hash } from "./Hash.js"; export declare class Adapters { constructor(api: ApiPromise); private readonly api; toPalletLogionLocFile(file: FileParams): PalletLogionLocFileParams; toCall(submittable: SubmittableExtrinsic): Call; fromFrameSystemAccountInfo(accountData: FrameSystemAccountInfo): TypesAccountData; fromPalletLogionLocLegalOfficerCase(rawLoc: PalletLogionLocLegalOfficerCase): LegalOfficerCase; static toJsonCall(genericCall: CallBase): TypesJsonCall; static isJsonObject(anyJson: AnyJson): anyJson is TypesJsonObject; static asJsonObject(anyJson: AnyJson): TypesJsonObject; static isString(anyJson: AnyJson): anyJson is string; static asString(anyJson: AnyJson): string; static isArray(anyJson: AnyJson): anyJson is AnyJson[]; static asArray(anyJson: AnyJson): AnyJson[]; static isHexString(anyJson: AnyJson): anyJson is HexString; static asHexString(anyJson: AnyJson): HexString; static isNumberString(anyJson: AnyJson): anyJson is string; static asBigInt(anyJson: AnyJson): bigint; static isJsonCall(anyJson: AnyJson): anyJson is TypesJsonCall; static asJsonCall(anyJson: AnyJson): TypesJsonCall; static getExtrinsicEvents(result: ISubmittableResult): TypesEvent[]; private static getEventData; static getErrorMetadata(dispatchError: DispatchError): TypesErrorMetadata; static getErrorMessage(dispatchError: DispatchError): string; static toLocId(id: UUID): string; toLocId(id: UUID): Compact; private toCompactU128Uuid; toNonCompactLocId(id: UUID): u128; private toNonCompactU128Uuid; fromLocId(locId: u128): UUID; toPalletLogionLocSupportedAccountId(accountId: ValidAccountId): PalletLogionLocSupportedAccountId; fromPalletLogionLocSupportedAccountId(accountId: PalletLogionLocSupportedAccountId): ValidAccountId; toPalletLogionLocMetadataItem(item: MetadataItemParams): PalletLogionLocMetadataItemParams; static fromPalletCollectionItem(itemId: Hash, unwrappedResult: PalletLogionLocCollectionItem): CollectionItem; toCollectionItemFile(itemFile: ItemFile): { name: H256; contentType: H256; size_: bigint; hash_: H256; }; toCollectionItemToken(itemToken?: ItemToken): { tokenType: H256; tokenId: H256; tokenIssuance: bigint; } | null; toTermsAndConditionsElement(tc: TermsAndConditionsElement): { tcType: H256; tcLoc: string; details: H256; }; toPalletLogionLocTokensRecordFile(file: TypesTokensRecordFile): PalletLogionLocTokensRecordFile; newTokensRecordFileVec(files: TypesTokensRecordFile[]): Vec; static toTokensRecord(substrateObject: PalletLogionLocTokensRecord): TypesTokensRecord; toPalletLogionLocOtherAccountId(accountId: OtherAccountId): PalletLogionLocOtherAccountId; toSponsorshipId(id: UUID): Compact; toNonCompactSponsorshipId(id: UUID): u128; fromSponsorshipId(sponsorshipId: u128): UUID; toSponsorship(sponsorship: PalletLogionLocSponsorship): Sponsorship; toAccountId(accountId: PalletLogionLocSupportedAccountId): ValidAccountId; getValidPolkadotAccountId(accountId: string): ValidAccountId; getValidAccountId(accountId: string, type: AccountType): ValidAccountId; toPalletLoAuthorityListLegalOfficerDataHost(legalOfficerData: Partial): PalletLoAuthorityListLegalOfficerDataParam; toLogionRuntimeRegion(region: Region): LogionRuntimeRegion; fromLogionRuntimeRegion(region: LogionRuntimeRegion): Region; getDefaultLogionRuntimeRegion(): LogionRuntimeRegion; private defaultRegion?; toHostData(legalOfficerData: PalletLoAuthorityListLegalOfficerData): Partial; toH256(data: Hash): H256; toPalletLogionLocLocLinkParams(link: LinkParams): PalletLogionLocLocLinkParams; toPalletLogionLocItemsParams(items: { metadata: MetadataItemParams[]; files: FileParams[]; links: LinkParams[]; }): PalletLogionLocItemsParams; emptyPalletLogionLocItemsParams(): PalletLogionLocItemsParams; toPalletLoAuthorityListHostDataParam(params: { nodeId: string | undefined; baseUrl: string | undefined; region: Region; }): PalletLoAuthorityListHostDataParam; }