import type { Keplr } from "@keplr-wallet/provider-extension"; import { WalletType } from "../omni/config"; import { HotConnector } from "../HotConnector"; import { ConnectorType, OmniConnector, OmniConnectorOptions } from "../OmniConnector"; import CosmosWallet from "./wallet"; import { OmniWallet } from "../OmniWallet"; export interface CosmosConnectorOptions extends OmniConnectorOptions { cosmosChains?: Record; } declare global { interface Window { keplr?: Keplr; leap?: Keplr; } } export default class CosmosConnector extends OmniConnector { cosmosChains: Record; type: ConnectorType; walletTypes: WalletType[]; icon: string; name: string; isSupported: boolean; id: string; constructor(wibe3: HotConnector, options?: CosmosConnectorOptions); getConfig(chain: string): { chain: string; rpc: string; denom: string; prefix: string; }; setupWalletConnect(id?: "keplr" | "leap"): Promise; setKeplrWallet(keplr: Keplr, address: string, publicKey: string): Promise; connectKeplr(type: "keplr" | "leap", extension?: Keplr): Promise; }>; connect(id: string): Promise; }>; }