Public declaration syntax from forge-ts/packages/forge-generate/src/stream.ts Original source SHA-256: 0690e9b3e90ccf2d3a312fe93f440f44f1b36671ca5fde34ef46498628bb340e Function bodies and constant values are omitted. This is not the complete implementation. Source line 44 export class TextStreamResult { constructor(chunks: readonly StreamChunk[]); get fullText(): string; get chunks(): readonly StreamChunk[]; get chunkCount(): number; get usage(): Usage; get finishReason(): FinishReason | undefined; get isComplete(): boolean; } Source line 158 export async function streamText( model: LanguageModel, messages: readonly ModelMessage[], tools: readonly ToolDefinition[], options: GenerateOptions ): Promise;