import { AxiosInstance } from "axios"; import Base, { MaybeRaw, Options } from "../../../../Base"; import { AIHigh5StreamEvent, type AIHigh5StreamRequest, AIHigh5StreamResponse } from "../../../../interfaces/ai"; import { SortDirection } from "../../../../interfaces/global"; export declare class AIHigh5Stream extends Base { constructor(options: Options, axios: AxiosInstance); /** * Get the message history of a High5 stream. * * @param organization Name of the Organization * @param space Name of the Space * @param streamId ID of the stream * @param page (optional) The page to retrieve * @param limit (optional) The maximum amount of streams that should be returned * @param direction (optional) Sort direction of the returned streams * @param raw (optional) If true, returns the raw Axios response * @returns Array of stream responses */ get(organization: string, space: string, streamId: string, page?: number, limit?: number, direction?: SortDirection, raw?: { raw: R; }): Promise>; /** * Send a message to a High5 stream and receive the response as a stream of Server-Sent Events. * * @param organization Name of the Organization * @param space Name of the Space * @param streamId ID of the stream * @param request The message request to send * @param onMessage Callback invoked for each event received from the stream */ post(organization: string, space: string, streamId: string, request: AIHigh5StreamRequest, onMessage: (event: AIHigh5StreamEvent) => void): Promise; protected getEndpoint(endpoint: string): string; }