import RpcActionGenerator from '../../Actions/Rpc'; import RpcAsset from './Asset'; import RpcCache, { IConfigRow } from './RpcCache'; import RpcCollection from './Collection'; import RpcOffer from './Offer'; import RpcQueue from './Queue'; import RpcSchema from './Schema'; import RpcTemplate from './Template'; declare type Fetch = (input?: Request | string, init?: RequestInit) => Promise; declare type ApiArgs = { fetch?: Fetch; rateLimit?: number; }; export default class RpcApi { readonly queue: RpcQueue; readonly cache: RpcCache; readonly action: RpcActionGenerator; readonly endpoint: string; readonly contract: string; private readonly fetchBuiltin; private readonly _config; constructor(endpoint: string, contract: string, args?: ApiArgs); config(): Promise; getAsset(owner: string, id: string, cache?: boolean): Promise; getTemplate(collectionName: string, templateID: string, cache?: boolean): Promise; getCollection(collectionName: string, cache?: boolean): Promise; getCollectionTemplates(collectionName: string): Promise; getCollectionsSchemas(collectionName: string): Promise; getSchema(collectionName: string, schemaName: string, cache?: boolean): Promise; getOffer(offerID: string, cache?: boolean): Promise; getAccountOffers(account: string): Promise; getAccountAssets(account: string): Promise; getCollectionInventory(collectionName: string, account: string): Promise; preloadCollection(collectionName: string, cache?: boolean): Promise; getTableRows({ code, scope, table, table_key, lower_bound, upper_bound, index_position, key_type }: any): Promise; fetchRpc(path: string, body: any): Promise; } export {};