import { SuiClientTypes } from "@mysten/sui/client"; import { SuiGrpcClient } from "@mysten/sui/grpc"; import { Transaction } from "@mysten/sui/transactions"; import { IncludeOptions } from "../types/IncludeOption"; export declare class SuiClientAdapter { private suiGrpcClient; constructor(client: SuiGrpcClient); getClient(): SuiGrpcClient; getObject({ id, options }: { id: string; options?: IncludeOptions; }): Promise<{ data: any; error: { code: string; object_id: string; }; } | { data: { objectId: string; version: string; digest: string; type: string; owner: SuiClientTypes.ObjectOwner; previousTransaction: undefined; content: { type: string; dataType: string; }; display: undefined; }; error?: undefined; }>; getCoinMetadata({ coinType }: { coinType: string; }): Promise<{ id: string | null; decimals: number; name: string; symbol: string; description: string; iconUrl: string | null; } | null>; resolveNameServiceNames({ address }: { address: string; }): Promise<{ data: string[]; }>; multiGetObjects({ ids, options }: { ids: string[]; options?: IncludeOptions; }): Promise<({ error: { code: string; object_id: any; }; data: any; } | { data: { objectId: string; version: string; digest: string; type: string; owner: SuiClientTypes.ObjectOwner; previousTransaction: undefined; display: undefined; content: { type: string; }; }; error?: undefined; })[]>; getOwnedObjects({ owner, options, type, cursor, limit }: { owner: string; options?: IncludeOptions; type?: string | undefined; cursor?: string; limit?: number; }): Promise<{ data: ({ error: { code: string; object_id: any; }; data: any; } | { data: { objectId: string; version: string; digest: string; type: string; owner: SuiClientTypes.ObjectOwner; previousTransaction: undefined; display: undefined; content: { type: string; }; }; error?: undefined; })[]; nextCursor: string | null; hasNextPage: boolean; }>; getDynamicFieldObject({ parentId, name, options }: { parentId: string; name: { type: string; value: any; }; options?: IncludeOptions; }): Promise<{ error: { code: string; object_id: any; }; data: any; } | { data: { objectId: string; version: string; digest: string; type: string; owner: SuiClientTypes.ObjectOwner; previousTransaction: undefined; display: undefined; content: { type: string; dataType: string; }; }; error?: undefined; }>; decodeDynamicFieldName: (type: string, bcsBytes: Uint8Array) => string | number | boolean; getDynamicFields({ parentId, cursor, limit }: { parentId: string; cursor?: string; limit?: number; }): Promise<{ data: ({ objectId: string; objectType: string; name: { type: string; value: string | number | boolean | Uint8Array; }; fieldId: string; type: string; valueType: string; $kind: "DynamicField"; childId?: undefined; value: undefined; } | { objectId: string; objectType: string; name: { type: string; value: string | number | boolean | Uint8Array; }; fieldId: string; type: string; valueType: string; $kind: "DynamicObject"; childId: string; value: undefined; })[]; nextCursor: string | null; hasNextPage: boolean; }>; devInspectTransactionBlock({ sender, transactionBlock }: { sender: string; transactionBlock: Transaction; }): Promise<{ effects: { status: { status: string; error: string | undefined; }; gasUsed: SuiClientTypes.GasCostSummary; }; events: { type: string; parsedJson: Record | null; packageId: string; module: string; sender: string; eventType: string; bcs: Uint8Array; json: Record | null; }[]; results: any; }>; getAllBalances({ owner }: { owner: string; }): Promise<{ coinType: string; totalBalance: string; }[]>; getCoins({ owner, coinType, cursor, }: { owner: string; coinType?: string; cursor?: string; }): Promise<{ data: { coinObjectId: string; coinType: string; objectId: string; version: string; digest: string; owner: SuiClientTypes.ObjectOwner; type: string; balance: string; }[]; nextCursor: string | null; hasNextPage: boolean; }>; getBalance({ coinType, owner }: { coinType: string; owner: string; }): Promise<{ totalBalance: string; }>; }