import { Event, EventsWithCursor, AnyObjectType, EventsInputs, SuiAddress } from "../../types"; import { QUnitType, OpUnitType } from "dayjs"; import { AftermathApi } from "../providers/aftermathApi"; import { SuiEvent, SuiEventFilter, SuiTransactionBlockResponse, Unsubscribe } from "@mysten/sui/client"; export declare class EventsApiHelpers { private readonly Provider; private static readonly constants; constructor(Provider: AftermathApi); fetchSubscribeToUserEvents: (inputs: { address: SuiAddress; onEvent: (event: SuiEvent) => void; }) => Promise; fetchCastEventsWithCursor: (inputs: { query: SuiEventFilter; eventFromEventOnChain: (eventOnChain: EventOnChainType) => EventType; } & EventsInputs) => Promise>; fetchEventsWithinTime: (inputs: { fetchEventsFunc: (eventsInputs: EventsInputs) => Promise>; timeUnit: QUnitType | OpUnitType; time: number; limitStepSize?: number | undefined; }) => Promise; fetchAllEvents: (inputs: { fetchEventsFunc: (eventsInputs: EventsInputs) => Promise>; limitStepSize?: number | undefined; }) => Promise; static suiEventOfTypeOrUndefined: (event: SuiEvent, eventType: AnyObjectType | (() => AnyObjectType)) => SuiEvent | undefined; static castEventOfTypeOrUndefined: (event: SuiEvent, eventType: AnyObjectType | (() => AnyObjectType), castFunction: (eventOnChain: EventTypeOnChain) => EventType, exactMatch?: boolean) => EventType | undefined; static findCastEventsOrUndefined: (inputs: { events: SuiEvent[]; eventType: AnyObjectType | (() => AnyObjectType); castFunction: (eventOnChain: EventTypeOnChain) => EventType; }) => EventType[]; static findCastEventOrUndefined: (inputs: { events: SuiEvent[]; eventType: AnyObjectType | (() => AnyObjectType); castFunction: (eventOnChain: EventTypeOnChain) => EventType; }) => EventType | undefined; static findCastEventInTransactionOrUndefined: (transaction: SuiTransactionBlockResponse, eventType: AnyObjectType | (() => AnyObjectType), castFunction: (eventOnChain: EventTypeOnChain) => EventType) => EventType | undefined; static findCastEventInTransactionsOrUndefined: (transactions: SuiTransactionBlockResponse[], eventType: AnyObjectType | (() => AnyObjectType), castFunction: (eventOnChain: EventTypeOnChain) => EventType) => EventType | undefined; static createEventType: (packageAddress: string, packageName: string, eventType: string) => string; } //# sourceMappingURL=eventsApiHelpers.d.ts.map