import { AxiosInstance } from 'axios'; export { BasicTypes, RpcRequest, RpcResult, Chain, METHODS, BlockTransactionInfo } from './typings'; import { RpcRequest, RpcResult, Chain, BlockTransactionInfo } from './typings'; export declare const JSONRPC: ({ method, params, id, }: RpcRequest.Params) => RpcRequest.Request; export declare class AppChain { server: string; citaFetchIns: AxiosInstance; citaFetch: (config: RpcRequest.Params) => Promise; constructor(server: string); setServer: (server: string) => void; netPeerCount: () => Promise; getBlockNumber: () => Promise; sendSignedTransaction: (signedData: string) => Promise; getBlockByHash: ({ hash, txInfo }: { hash: string; txInfo: BlockTransactionInfo; }) => Promise; getBlockByNumber: ({ quantity, txInfo, }: { quantity: string; txInfo: BlockTransactionInfo; }) => Promise; getTransactionReceipt: (hash: string) => Promise; getLogs: ({ topics, fromBlock }?: { topics: string[]; fromBlock: string; }) => Promise; ethCall: ({ callObject, blockNumber, }: { callObject: { from?: string | undefined; to: string; data: string; }; blockNumber: string; }) => Promise; getTransaction: (hash: string) => Promise; getTransactionCount: ({ addr, blockNumber, }: { addr: string; blockNumber: string; }) => Promise; getCode: ({ contractAddr, blockNumber, }: { contractAddr: string; blockNumber: string; }) => Promise; getAbi: ({ addr, blockNumber }: { addr: string; blockNumber: string; }) => Promise; getTransactionProof: (hash: string) => Promise; getBlockHistory: ({ by, count }: { by: string; count: number; }) => Promise[]>; metadata: ({ blockNumber }: { blockNumber: string; }) => Promise; getBalance: ({ addr, quantity }: { addr: string; quantity?: string | undefined; }) => Promise; newFilter: (topics: string[]) => Promise; newBlockFilter: () => Promise; uninstallFilter: (filterId: string) => Promise; getFilterChanges: (filterId: string) => Promise; getFilterLogs: (filterId: string) => Promise; getQuotaPrice: (blockNumber?: string) => Promise; } declare const appchainPlugin: ({ Web3, server }: { Web3?: any; server: string; }) => { web3: any; appchain: AppChain; }; export default appchainPlugin;