import type { ConfigureGrazArgs, Wallet, SignDoc as GrazSignDoc, Key } from 'graz'; import { ParaAminoSigner } from '@getpara/cosmjs-v0-integration'; import { ParaWeb, Wallet as ParaWallet } from '@getpara/web-sdk'; import type { DirectSignResponse, OfflineDirectSigner } from '@cosmjs/proto-signing'; import type { AminoSignResponse, OfflineAminoSigner, StdSignature, StdSignDoc } from '@cosmjs/amino'; export type GrazChainInfo = ConfigureGrazArgs['chains'][number]; type KeplrSignOptions = Parameters[1]; export type ParaGrazConnectorEvents = { onEnabled?: (chainIds: string[], connector: ParaGrazConnector) => void; }; export interface ParaGrazConfig { paraWeb: ParaWeb; events?: ParaGrazConnectorEvents; } export declare function toArray(v: T | T[]): T[]; export declare class ParaGrazConnector implements Omit { protected readonly config: ParaGrazConfig; protected readonly chains: GrazChainInfo[] | null; protected paraWebClient: ParaWeb; protected enabledChainIds: Set; protected readonly events?: ParaGrazConnectorEvents; constructor(config: ParaGrazConfig, chains?: GrazChainInfo[] | null); protected ensureChainEnabled(chainId: string): Promise; protected waitForLogin(timeoutMs?: number): Promise; protected waitForAccounts(timeoutMs?: number): Promise; protected hasCosmosWallet(): Promise; enable(chainIdsInput: string | string[]): Promise; disconnect(): Promise; getFirstWallet(): Promise; getBech32Prefix(chainId: string): string; getParaWebClient(): ParaWeb; getConfig(): ParaGrazConfig; protected buildHybridSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner; getKey(chainId: string): Promise; getOfflineSignerOnlyAmino(chainId: string): ParaAminoSigner; getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner; getOfflineSignerAuto(chainId: string): Promise; signAmino(chainId: string, signer: string, signDoc: StdSignDoc, _signOptions?: KeplrSignOptions): Promise; signDirect(chainId: string, signer: string, signDoc: GrazSignDoc, _signOptions?: KeplrSignOptions): Promise; signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise; } export {};