import Arweave from 'arweave'; import { ArtByCityConfig } from '../config'; import LegacyTransactions from './transactions'; import LegacyMemcache from './memcache'; import { LegacyProfile, LegacyBundlePublicationFeed, LegacyPublicationManifest, LegacyPublicationFeed, LegacyLikesFeed, LegacyTipsFeed, LegacyAvatar } from './'; export default class ArtByCityLegacy { private readonly config; readonly transactions: LegacyTransactions; private readonly gatewayRoot; private readonly cacheEnabled; readonly caches: { publications: LegacyMemcache; slugs: LegacyMemcache; profiles: LegacyMemcache; avatars: LegacyMemcache; likes: LegacyMemcache; tips: LegacyMemcache; }; constructor(arweave: Arweave, config: ArtByCityConfig); get verifiedCreators(): string[]; queryPublications(limit?: number | 'all', creator?: string | string[], cursor?: string): Promise; queryPublicationBundles(limit?: number | 'all', creator?: string | string[], cursor?: string): Promise; fetchPublicationBySlugOrId(slugOrId: string, useCache?: boolean): Promise; fetchPublicationBySlug(slug: string, useCache?: boolean): Promise; fetchPublication(manifestId: string, useCache?: boolean): Promise; fetchProfile(address: string, useCache?: boolean): Promise; fetchAvatar(address: string, useCache?: boolean): Promise; queryLikes(address: string, receivedOrSent: 'received' | 'sent', limit?: number | 'all', cursor?: string, useCache?: boolean): Promise; queryLikesForPublication(id: string, limit?: number | 'all', cursor?: string, useCache?: boolean): Promise; queryTips(address: string, receivedOrSent: 'received' | 'sent', limit?: number | 'all', cursor?: string, useCache?: boolean): Promise; }