import Api from "../Api"; import { BaseService } from "./BaseService"; import { TSavedEvent } from "../types/saved-event.type"; export declare class EventsService extends BaseService { private url; private readonly prefix; private pendingRequests; constructor(api: Api); getSavedEvents(): Promise; createSavedEvent(params: { name: string; payload?: any; targetUsers?: string[]; schedule?: string; }): Promise; triggerSavedEvent(name: string): Promise; on(eventName: string, callback: (value: any) => void): void; once(eventName: string, callback: (value: any) => void): void; off(eventName: string): void; emit(eventName: string, message?: any): void; emitImmediately(eventName: string, message: any): void; private evt; }