import { D as DeveloperApiClient } from '../errors-DwEt8WYf.mjs'; export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, V as V1ApiNamespace, c as V1ChatModule, e as V1ThreadModule, d as V1WorkspaceModule, b as ValidationError } from '../errors-DwEt8WYf.mjs'; interface WorkspaceStreamChunk { /** The text fragment emitted by this SSE event */ textResponse: string; /** Unique identifier for this chat session */ id: string; /** Human-readable source references used for this response, if any */ sources: Array<{ id: string; url?: string; title?: string; score?: number; }>; /** Whether this is the final chunk in the stream */ close: boolean; /** Error message, present only when the server emits an error event */ error: string | null; } /** * Execute a streamable chat with a workspace and yield typed SSE chunks. * * @example * ```ts * const sdk = new RealtimeXSDK({ realtimex: { apiKey: 'sk-...' } }); * for await (const chunk of streamWorkspaceChat(sdk.v1!._client, 'my-workspace', { message: 'Hello' })) { * process.stdout.write(chunk.textResponse); * } * ``` */ declare function streamWorkspaceChat(client: DeveloperApiClient, slug: string, body?: Record): AsyncGenerator; interface ThreadStreamChunk { /** The text fragment emitted by this SSE event */ textResponse: string; /** Unique identifier for this chat session */ id: string; /** Human-readable source references used for this response, if any */ sources: Array<{ id: string; url?: string; title?: string; score?: number; }>; /** Whether this is the final chunk in the stream */ close: boolean; /** Error message, present only when the server emits an error event */ error: string | null; } /** * Execute a streamable chat with a workspace thread and yield typed SSE chunks. * * @example * ```ts * const sdk = new RealtimeXSDK({ realtimex: { apiKey: 'sk-...' } }); * for await (const chunk of streamThreadChat(sdk.v1!._client, 'my-workspace', 'my-thread', { message: 'Hello' })) { * process.stdout.write(chunk.textResponse); * } * ``` */ declare function streamThreadChat(client: DeveloperApiClient, slug: string, threadSlug: string, body?: Record): AsyncGenerator; export { DeveloperApiClient, type ThreadStreamChunk, type WorkspaceStreamChunk, streamThreadChat, streamWorkspaceChat };