import { Principal } from '@dfinity/principal'; import { LedgerDelegate } from './delegates/ledger-delegate'; import { LedgerAdminDelegate } from './delegates/ledger-admin-delegate'; import { AggregatorDelegate } from './delegates/aggregator-delegate'; import { AssetId, GlobalId } from '../candid/ledger'; import { Observable } from 'rxjs'; import { Identity, RequestId } from '@dfinity/agent'; import { FeeMode } from './types'; import { OwnersDelegate } from './delegates/owners-delegate'; export type SimpleTransferStatusKey = 'queued' | 'forwarding' | 'forwarded' | 'processed'; export type SimpleTransferStatus = { status: SimpleTransferStatusKey; txId: GlobalId | null; statusPayload?: any | { info: any; }; }; export type TransferAccountReference = { type: 'sub'; id: bigint; } | { type: 'vir'; owner: Principal | string; id: bigint; } | { type: 'mint'; }; export declare class HPLClient { readonly ledgerPrincipal: Principal | string; readonly network: 'ic' | 'local'; readonly ledger: LedgerDelegate; readonly admin: LedgerAdminDelegate; private _externalIdentity; get externalIdentity(): Identity | null; setIdentity(identity: Identity | null): Promise; constructor(ledgerPrincipal: Principal | string, network: 'ic' | 'local'); getAggregators(): Promise; pickAggregator(): Promise; createAggregatorDelegate(principal: Principal | string): Promise; createOwnersDelegate(principal: Principal | string): Promise; simpleTransfer(aggregator: AggregatorDelegate, from: TransferAccountReference, to: TransferAccountReference, asset: AssetId, amount: number | BigInt | 'max', feeMode?: FeeMode | null, memo?: Array): Promise; prepareSimpleTransfer(aggregator: AggregatorDelegate, from: TransferAccountReference, to: TransferAccountReference, asset: AssetId, amount: number | BigInt | 'max', feeMode?: FeeMode | null, memo?: Array): Promise<{ requestId: RequestId; commit: () => Promise<[GlobalId, number]>; }>; getSimpleTransferResponse(aggregator: AggregatorDelegate, requestId: RequestId): Promise<[GlobalId, number]>; pollTx(aggregator: AggregatorDelegate, txId: GlobalId, submissionTimestamp?: number): Observable; private _txInputFromRawArgs; }