import ExplorerActionGenerator from '../../Actions/Explorer'; import { IAccountCollectionStats, IAccountStats, IAsset, IAssetStats, ICollection, ICollectionStats, IConfig, ILog, IOffer, ISchema, ISchemaStats, ITemplate, ITemplateStats, ITransfer } from './Objects'; import { AccountApiParams, AssetsApiParams, CollectionApiParams, GreylistParams, HideOffersParams, OfferApiParams, SchemaApiParams, TemplateApiParams, TransferApiParams } from './Params'; declare type Fetch = (input?: Request | string, init?: RequestInit) => Promise; declare type ApiArgs = { fetch?: Fetch; }; export declare type DataOptions = Array<{ key: string; value: any; type?: string; }>; export default class ExplorerApi { readonly action: Promise; private readonly endpoint; private readonly namespace; private readonly fetchBuiltin; constructor(endpoint: string, namespace: string, args: ApiArgs); getConfig(): Promise; getAssets(options?: AssetsApiParams, page?: number, limit?: number, data?: DataOptions): Promise; countAssets(options: AssetsApiParams, data?: DataOptions): Promise; getAsset(id: string): Promise; getAssetStats(id: string): Promise; getAssetLogs(id: string, page?: number, limit?: number, order?: string): Promise; getCollections(options?: CollectionApiParams, page?: number, limit?: number): Promise; countCollections(options?: CollectionApiParams): Promise; getCollection(name: string): Promise; getCollectionStats(name: string): Promise; getCollectionLogs(name: string, page?: number, limit?: number, order?: string): Promise; getSchemas(options?: SchemaApiParams, page?: number, limit?: number): Promise; countSchemas(options?: SchemaApiParams): Promise; getSchema(collection: string, name: string): Promise; getSchemaStats(collection: string, name: string): Promise; getSchemaLogs(collection: string, name: string, page?: number, limit?: number, order?: string): Promise; getTemplates(options?: TemplateApiParams, page?: number, limit?: number, data?: DataOptions): Promise; countTemplates(options?: TemplateApiParams, data?: DataOptions): Promise; getTemplate(collection: string, id: string): Promise; getTemplateStats(collection: string, name: string): Promise; getTemplateLogs(collection: string, id: string, page?: number, limit?: number, order?: string): Promise; getTransfers(options?: TransferApiParams, page?: number, limit?: number): Promise; countTransfers(options?: TransferApiParams): Promise; getOffers(options?: OfferApiParams, page?: number, limit?: number): Promise; countOffers(options?: OfferApiParams): Promise; getOffer(id: string): Promise; getAccounts(options?: AccountApiParams, page?: number, limit?: number): Promise>; getBurns(options?: AccountApiParams, page?: number, limit?: number): Promise>; countAccounts(options?: AccountApiParams): Promise; getAccount(account: string, options?: GreylistParams & HideOffersParams): Promise; getAccountCollection(account: string, collection: string): Promise; getAccountBurns(account: string, options?: GreylistParams & HideOffersParams): Promise; fetchEndpoint(path: string, args: any): Promise; countEndpoint(path: string, args: any): Promise; } export {};