/**
 * gRPC Streaming Tool Helper for Master
 *
 * Provides utilities for master tools to subscribe to worker events via gRPC
 * and display live streaming output.
 */
import type { StreamEvent } from './grpc-stream-events.js';
export interface GrpcStreamingOptions {
    agentId: string;
    agentName: string;
    operationId: string;
    operationType: 'chat' | 'task';
    onUpdate?: (update: any) => void;
    signal?: AbortSignal;
}
export interface GrpcStreamingResult {
    finalResult: any;
    events: StreamEvent[];
}
/**
 * Subscribe to worker events via gRPC and handle streaming display
 */
export declare function withGrpcWorkerStreaming(options: GrpcStreamingOptions, operation: () => Promise<any>): Promise<GrpcStreamingResult>;
/**
 * Forward a gRPC frame into the master-side streaming manager.
 */
export declare function forwardGrpcStreamFrame(frame: any): void;
/**
 * Connect gRPC streaming manager to GrpcServer frame events.
 * Kept for compatibility with existing startup wiring.
 */
export declare function connectGrpcStreamingToServer(_onFrameCallback: (frame: any) => void): () => void;
//# sourceMappingURL=grpc-streaming-tool-helper.d.ts.map