import { SubscriptionHandler } from '@1hive/connect-core'; import ContractCache from '../models/helpers/ContractCache'; import Contribution from '../models/Contribution'; import Contributor from '../models/Contributor'; import GeneralConfig from '../models/GeneralConfig'; export declare type SubscriptionCallback = (error: Error | null, data?: T) => void; export interface IHatchConnector { disconnect(): Promise; generalConfig(orgAddress: string, contractCache: ContractCache): Promise; onGeneralConfig(orgAddress: string, callback: SubscriptionCallback, contractCache: ContractCache): SubscriptionHandler; contributors(appAddress: string, first: number, skip: number, orderBy: string, orderDirection: string): Promise; onContributors(appAddress: string, first: number, skip: number, orderBy: string, orderDirection: string, callback: SubscriptionCallback): SubscriptionHandler; contributor(id: string): Promise; onContributor(id: string, callback: SubscriptionCallback): SubscriptionHandler; contributions(appAddress: string, contributor: string, first: number, skip: number, orderBy: string, orderDirection: string): Promise; onContributions(appAddress: string, contributor: string, first: number, skip: number, orderBy: string, orderDirection: string, callback: SubscriptionCallback): SubscriptionHandler; } //# sourceMappingURL=connector-type.d.ts.map