///
import { AminoSignResponse, BroadcastMode, OfflineSigner, StdSignature, StdSignDoc, StdTx } from "@cosmjs/launchpad";
import { DirectSignResponse, OfflineDirectSigner } from "@cosmjs/proto-signing";
import { KVStore } from "@keplr-wallet/common";
import { ChainInfo, KeplrIntereactionOptions, KeplrMode, KeplrSignOptions, Key } from "@keplr-wallet/types";
import { IConnector, IJsonRpcRequest, IRequestOptions } from "@walletconnect/types";
import { SecretUtils } from "secretjs/types/enigmautils";
import { IKeplrWalletConnectV1 } from "../types";
export declare type KeplrGetKeyWalletConnectV1Response = {
address: string;
algo: string;
bech32Address: string;
isNanoLedger: boolean;
name: string;
pubKey: string;
};
export declare type KeplrKeystoreMayChangedEventParam = {
algo: string;
name: string;
isNanoLedger: boolean;
keys: {
chainIdentifier: string;
address: string;
bech32Address: string;
pubKey: string;
}[];
};
export declare class KeplrWalletConnectV1 implements IKeplrWalletConnectV1 {
readonly connector: IConnector;
readonly chainInfos: ChainInfo[];
kvStore: KVStore;
onBeforeSendRequest?: (request: Partial, options?: IRequestOptions) => Promise | void;
onAfterSendRequest?: (response: any, request: Partial, options?: IRequestOptions) => Promise | void;
dontOpenAppOnEnable: boolean;
constructor(connector: IConnector, chainInfos: ChainInfo[], options?: {
kvStore?: KVStore;
onBeforeSendRequest?: KeplrWalletConnectV1["onBeforeSendRequest"];
onAfterSendRequest?: KeplrWalletConnectV1["onAfterSendRequest"];
});
readonly version: string;
readonly mode: KeplrMode;
defaultOptions: KeplrIntereactionOptions;
protected readonly onCallReqeust: (error: Error | null, payload: any | null) => Promise;
protected clearSaved(): Promise;
protected sendCustomRequest(request: Partial, options?: IRequestOptions): Promise;
enable(chainIds: string | string[]): Promise;
protected getKeyHasEnabled(): string;
protected getHasEnabledChainIds(): Promise;
protected saveHasEnabledChainIds(chainIds: string[]): Promise;
enigmaDecrypt(_chainId: string, _ciphertext: Uint8Array, _nonce: Uint8Array): Promise;
enigmaEncrypt(_chainId: string, _contractCodeHash: string, _msg: object): Promise;
experimentalSuggestChain(_chainInfo: ChainInfo): Promise;
getEnigmaPubKey(_chainId: string): Promise;
getEnigmaTxEncryptionKey(_chainId: string, _nonce: Uint8Array): Promise;
getEnigmaUtils(_chainId: string): SecretUtils;
getKey(chainId: string): Promise;
protected getKeyLastSeenKey(): string;
protected getLastSeenKey(chainId: string): Promise;
protected getAllLastSeenKey(): Promise<{
[chainId: string]: KeplrGetKeyWalletConnectV1Response | undefined;
} | undefined>;
protected saveAllLastSeenKey(data: {
[chainId: string]: KeplrGetKeyWalletConnectV1Response | undefined;
}): Promise;
protected saveLastSeenKey(chainId: string, response: KeplrGetKeyWalletConnectV1Response): Promise;
signArbitrary(_chainId: string, _signer: string, _data: string | Uint8Array): Promise;
verifyArbitrary(_chainId: string, _signer: string, _data: string | Uint8Array, _signature: StdSignature): Promise;
getOfflineSigner(chainId: string): OfflineSigner & OfflineDirectSigner;
getOfflineSignerAuto(chainId: string): Promise;
getOfflineSignerOnlyAmino(chainId: string): OfflineSigner;
getSecret20ViewingKey(_chainId: string, _contractAddress: string): Promise;
sendTx(chainId: string, tx: StdTx | Uint8Array, mode: BroadcastMode): Promise;
signAmino(chainId: string, signer: string, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise;
signDirect(_chainId: string, _signer: string, _signDoc: {
bodyBytes?: Uint8Array | null;
authInfoBytes?: Uint8Array | null;
chainId?: string | null;
accountNumber?: Long | null;
}, _signOptions?: KeplrSignOptions): Promise;
suggestToken(_chainId: string, _contractAddress: string, _viewingKey?: string): Promise;
}
//# sourceMappingURL=walletconnect-keplr.d.ts.map