@near-wallet-selector/wallet-connect
Version:
Wallet Connect package for NEAR Wallet Selector.
18 lines (17 loc) • 1.09 kB
TypeScript
import type { SignClientTypes, EngineTypes, ISignClient } from "@walletconnect/types";
import type { SessionTypes } from "@walletconnect/types";
import type { EventEmitterService, Subscription, WalletEvents } from "@near-wallet-selector/core";
declare class WalletConnectClient {
private client;
private emitter;
private modal;
init(opts: SignClientTypes.Options): Promise<void>;
constructor(emitter: EventEmitterService<WalletEvents>);
get session(): ISignClient["session"];
on<Event extends SignClientTypes.Event>(event: Event, callback: (args: SignClientTypes.EventArguments[Event]) => void): Subscription;
once<Event extends SignClientTypes.Event>(event: Event, callback: (args: SignClientTypes.EventArguments[Event]) => void): void;
connect(params: EngineTypes.ConnectParams, qrCodeModal: boolean, projectId: string, chainId: string): Promise<SessionTypes.Struct>;
request<Response>(params: EngineTypes.RequestParams): Promise<Response>;
disconnect(params: EngineTypes.DisconnectParams): Promise<void>;
}
export default WalletConnectClient;