import { Deferrable } from '@ethersproject/properties'; import { ConnectionInfo } from '@ethersproject/web'; import { Bytes } from '@ethersproject/bytes'; import { Network, Networkish } from '../networks'; import { BaseProvider, Event } from './base-provider'; import { TransactionRequest } from '../types'; import { Signer } from '../abstract-signer'; import { Provider } from '../abstract-provider'; export declare class JsonRpcSigner extends Signer { readonly provider: JsonRpcProvider; _index?: number; _address?: string; constructor(constructorGuard: any, provider: JsonRpcProvider, addressOrIndex?: string | number); connect(provider: Provider): JsonRpcSigner; getAddress(): Promise; sendUncheckedTransaction(transaction: Deferrable): Promise; signTransaction(transaction: Deferrable): Promise; signMessage(message: Bytes | string): Promise; unlock(password: string): Promise; } export declare class JsonRpcProvider extends BaseProvider { readonly connection: ConnectionInfo; _pendingFilter: Promise; _nextId: number; constructor(url?: ConnectionInfo | string, network?: Networkish); static defaultUrl(): string; detectNetwork(): Promise; getSigner(addressOrIndex?: string | number): JsonRpcSigner; getNowSeconds(): Promise; isAptos(): boolean; send(method: string, params: Array): Promise; prepareRequest(method: string, params: any): [string, Array]; perform(method: string, params: any): Promise; _startEvent(event: Event): void; _stopEvent(event: Event): void; static hexlifyTransaction(transaction: TransactionRequest, allowExtra?: { [key: string]: boolean; }): { [key: string]: string; }; }