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<unknown> {
    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<void>;
    custom<T extends {
        type: string;
    }>(data: T extends {
        type: `data-${string}`;
    } ? DataChunkType : T): Promise<void>;
}
//# sourceMappingURL=stream.d.ts.map