/**
 * Worker Agent with gRPC Transport
 *
 * A worker agent that connects to master via gRPC for all live communication
 */
import type { Persona } from '../types/persona.js';
export interface WorkerAgentOptions {
    agentId: string;
    agentName: string;
    workspace: string;
    masterGrpcEndpoint: string;
    allowedTools: string[];
    persona?: Persona;
    httpEndpoint?: string;
}
export declare class WorkerAgent {
    private options;
    private grpcClient;
    private persona;
    private memory;
    private isConnected;
    private activeTaskControllers;
    constructor(options: WorkerAgentOptions);
    private loadPersonaAndMemory;
    connect(): Promise<void>;
    private handleGrpcFrame;
    private handleChatMessage;
    private handleTaskCancelled;
    private summarizeTaskForMemory;
    private handleTaskStarted;
    sendChat(toAgentId: string, message: string, conversationId?: string): boolean;
    disconnect(): void;
    isConnectedToMaster(): boolean;
    getAgentId(): string;
    getAgentName(): string;
}
//# sourceMappingURL=worker-agent.d.ts.map