import { AgentMessageStreamConfig } from './types'; export declare class AgentMessageStream { private readonly messageId; private isEnded; private readonly format; private readonly conversationId; private readonly agentId; private readonly realtime; constructor(config: AgentMessageStreamConfig); start(): void; /** * Write the next part of the message with a typewriter animation. * Writing to the stream after calling `end` will throw an error. */ typewrite(message: string, options?: { intervalMs?: number; }): Promise; /** * Write the next part of the message. * Writing to the stream after calling `end` will throw an error. */ write(message: string): void; /** * Indicate that the message is complete, releasing the user's prompt. * This MUST be called after all the calls to `write` have been made. * Writing to the stream after calling `end` will throw an error. */ end(): void; }