export interface StreamableData { type: StreamableDataType; content: string; success: boolean; wrappedMessage?: string; } export declare class StreamMessageWrapper { static readonly startIndicator = "dc-start-indicator-1234567890"; static readonly endIndicator = "dc-end-indicator-1234567890"; static wrapMessage(message: string): string; static unwrapMessage(message: string): string; } export declare enum StreamableDataType { /** It's a string, which can be parsed to a json object of type T, T being the type of the response */ ParsableResponse = 0, Start = 1, Failure = 2, /** The main answer to the request, which is meant to be streamed. Typically a regular string, but can be a parsable JSON string, depending on the endpoint */ Answer = 3, FinishReason = 4, MessageId = 5 }