export type JSONValue = string | number | boolean | { [value: string]: JSONValue; } | JSONValue[] | null; export declare enum SSEType { TextDelta = "text", ResponseTemplate = "tpl", ResponseTemplatePropsChunk = "tpl_props_chunk", ContextAppend = "context_append", MessageUpdate = "message_update", Error = "error" } interface Chunk { toSSEString(): string; } export declare class TextChunk implements Chunk { readonly chunk: string; constructor(chunk: string); toSSEString(): string; static fromSSEData(data: string): TextChunk; } export declare class ResponseTemplate implements Chunk { readonly name: string; readonly templateProps?: object | undefined; constructor(name: string, templateProps?: object | undefined); toSSEString(): string; static fromSSEData(data: string): ResponseTemplate; } export declare class ResponseTemplatePropsChunk implements Chunk { readonly chunk: string; constructor(chunk: string); toSSEString(): string; static fromSSEData(data: string): ResponseTemplatePropsChunk; } export declare class ContextUpdate implements Chunk { readonly contextItem: JSONValue; constructor(contextItem: JSONValue); toSSEString(): string; static fromSSEData(data: string): ContextUpdate; } export declare class MessageUpdate implements Chunk { readonly id: string; constructor(id: string); toSSEString(): string; static fromSSEData(data: string): MessageUpdate; } export declare class Error implements Chunk { readonly error: string; constructor(error: string); toSSEString(): string; static fromSSEData(data: string): Error; } export {}; //# sourceMappingURL=types.d.ts.map