/**
 * Worker-side model caller for persona-driven conversations
 *
 * Provides a clean interface for workers to generate chat responses
 * using the configured model/provider, with persona and memory context.
 */
import type { Persona, Memory, ConversationTurn } from "../types/persona.js";
/**
 * Build conversation context from persona, memory, and incoming turn
 */
export declare function buildConversationContext(persona: Persona | null, memory: Memory | null, turn: ConversationTurn, workspace: string): string;
/**
 * Generate a chat response using the actual model
 */
export declare function generateModelChatResponse(persona: Persona | null, memory: Memory | null, turn: ConversationTurn, workspace: string, availableTools?: any[], // Add tools parameter for grounded execution
onEvent?: (event: any) => void, // Event callback for streaming
validationAttempt?: number): Promise<{
    reply: string;
    thinking?: string;
    toolCalls?: any[];
}>;
/**
 * Update memory based on conversation
 */
export declare function updateMemoryFromConversation(existingMemory: Memory | null, persona: Persona | null, turn: ConversationTurn, reply: string): Memory;
//# sourceMappingURL=worker-model-caller.d.ts.map