import Base, { MaybeRaw } from "../../../../Base"; import { PaginatedResponse, SearchParams } from "../../../../interfaces/global"; import { Event } from "../../../../interfaces/high5/space/event"; import { High5Stream } from "./stream"; export declare class High5Event extends Base { get stream(): High5Stream; private _stream?; /** * Retrieves all Events of a High5 Space which match the provided search filter(s). Will return all Events of the Space if no filter is provided. * @param orgName Name of the Organization * @param spaceName Name of the Space * @param filters (optional) Array of search filters * @param sorting (optional) Sorting object * @param limit (optional) Max number of results (1-100; defaults to 25) * @param page (optional) Page number: Skip the first (page * limit) results (defaults to 0) * @returns Object containing an array of Events and the total number of results found in the database (independent of limit and page) */ searchEvents({ orgName, spaceName, filters, sorting, limit, page }: SearchParams & { orgName: string; spaceName: string; }, raw?: { raw: R; }): Promise>>; /** * Retrieves an Event by its name. * @param orgName Name of the Organization * @param spaceName Name of the Space * @param eventName Name of the Event * @returns The requested Event */ getEvent(orgName: string, spaceName: string, eventName: string, raw?: { raw: R; }): Promise>; /** * Creates a new Event in the provided Space. * @param orgName Name of the Organization * @param spaceName Name of the Space * @param name Name of the new Event * @returns The created Event */ createEvent(orgName: string, spaceName: string, name: string, raw?: { raw: R; }): Promise>; /** * Rename an event * @param orgName Name of the Organization * @param spaceName Name of the Space * @param eventName Name of the Event * @param name New name of the Event * @returns Updated Event */ renameEvent(orgName: string, spaceName: string, eventName: string, name: string, raw?: { raw: R; }): Promise>; /** * Deletes an Event by its name. * @param orgName Name of the Organization * @param spaceName Name of the Space * @param eventName Name of the Event */ deleteEvent(orgName: string, spaceName: string, eventName: string, raw?: { raw: R; }): Promise>; protected getEndpoint(endpoint: string): string; }