import Arweave from 'arweave'; import ArdbTransaction from 'ardb/lib/models/transaction'; import { ArtByCityEnvironment } from '../config'; type AnyJson = boolean | number | string | null | JsonArray | JsonMap; interface JsonMap { [key: string]: AnyJson; } interface JsonArray extends Array { } export type DomainEntityCategory = 'artwork' | 'artwork:bundle' | 'avatar' | 'like' | 'profile' | 'tip' | 'username'; export interface TransactionSearchResults { cursor: string; transactions: ArdbTransaction[]; } export interface LegacyTransactionQueryOpts { from: string | string[]; to: string | string[]; type: string; tags: { name: string; value: string; }[]; minHeight: number; maxHeight: number; cursor: string; limit: number | 'all'; sort: 'HEIGHT_ASC' | 'HEIGHT_DESC'; } export default class LegacyTransactions { private readonly arweave; private readonly ardb; private readonly appName; constructor(arweave: Arweave, environment: ArtByCityEnvironment); query(category: DomainEntityCategory, opts?: Partial): Promise; fetch(id: string): Promise; fetchData(id: string): Promise>>; } export {};