import { WritableStream } from 'node:stream/web'; import type { DataChunkType } from '../stream/types.js'; import type { OutputWriter } from '../workflows/index.js'; export declare class ToolStream extends WritableStream { private prefix; private callId; private name; private runId; private writeFn?; constructor({ prefix, callId, name, runId, }: { prefix: string; callId: string; name: string; runId: string; }, writeFn?: OutputWriter); private _write; write(data: any): Promise; custom(data: T extends { type: `data-${string}`; } ? DataChunkType : T): Promise; } //# sourceMappingURL=stream.d.ts.map