import { IResponse } from "./interfaces"; import { AvailableResourcesName } from "./resources"; export declare class Connection { private readonly host; private opts; constructor(host: string); api(name: T): InstanceType<{ blocks: typeof import("./resources/blocks").Blocks; delegates: typeof import("./resources/delegates").Delegates; locks: typeof import("./resources/locks").Locks; node: typeof import("./resources/node").Node; peers: typeof import("./resources/peers").Peers; rounds: typeof import("./resources/rounds").Rounds; transactions: typeof import("./resources/transactions").Transactions; votes: typeof import("./resources/votes").Votes; wallets: typeof import("./resources/wallets").Wallets; }[T]>; withOptions(opts: Record): this; get(url: string, opts?: Record): Promise>; post(url: string, opts?: Record): Promise>; private sendRequest; }