import './interfaces/types-lookup.js'; import './interfaces/augment-api.js'; import './interfaces/augment-types.js'; import { ApiPromise } from '@polkadot/api'; import { Adapters } from './Adapters.js'; import { FeesEstimator } from './FeesEstimator.js'; import { Queries } from './Queries.js'; import { ChainTime } from './ChainTime.js'; import { Vault } from './VaultClass.js'; import { LocBatch } from './LocBatch.js'; import { UUID } from './UUID.js'; import { LegalOfficerCase, VerifiedIssuerType, ValidAccountId } from './Types.js'; import { Batching } from "./Batching.js"; export type ChainType = "Solo" | "Para"; export declare const LOGION_SPEC_NAME = "logion"; export declare const SOLO_VERSION = 164n; export declare const MIN_SUPPORTED_PARA_VERSION = 4000n; export declare const MAX_SUPPORTED_PARA_VERSION = 5000n; /** * A Logion chain client. An instance of this class provides * direct access to the Polkadot API but also to Logion-specific * features and helpers. */ export declare class LogionNodeApiClass { /** * Creates a connected Logion chain client. * @param endpoint the URL(s) of the RPCs to connect to. * @returns A promise resolving to a connected Logion chain client. */ static connect(endpoint: string | string[]): Promise; private static buildProvider; constructor(api: ApiPromise); readonly polkadot: ApiPromise; readonly chainType: ChainType; private detectChainType; readonly adapters: Adapters; readonly fees: FeesEstimator; readonly queries: Queries; readonly batching: Batching; readonly time: { now: () => Promise; }; vault(requester: ValidAccountId, legalOfficers: ValidAccountId[]): Vault; readonly batch: { /** * Builds a LocBatch instance. * * @param ids The LOCs to consider. * @param locs DEPRECATED - this parameter will be removed * @param availableVerifiedIssuers DEPRECATED - this parameter will be removed * @returns a LocBatch instance */ locs: (ids: UUID[], locs?: Record, availableVerifiedIssuers?: Record) => LocBatch; }; } /** * Builds a connected interface to the Logion chain. * @param endpoint the URL(s) of the RPCs to connect to * @returns A connected Logion chain client * @deprecated Use `LogionNodeApiClass.connect(endpoint)` instead */ export declare function buildApiClass(endpoint: string | string[]): Promise;