import type { AgentMessage } from '@earendil-works/pi-agent-core'; import type { VoiceMemorySnapshot } from './memory-context.js'; import type { VoiceUserSnapshot } from './user-context.js'; export interface VoiceConversationContext { identity: string; history: AgentMessage[]; memory?: VoiceMemorySnapshot; isCurrent?: () => boolean; actions?: boolean; user?: VoiceUserSnapshot; sharedChat?: string; } /** Use the canonical, already-compacted Session context. No tools or hidden reasoning. */ export declare function buildVoiceHistory(messages: AgentMessage[], budget?: number): string; /** A separate quoted conversation item avoids competing with persona and tools for the instruction limit. */ export declare function buildVoiceResumeHistory(messages: AgentMessage[]): string; export declare function voiceMemoryBudget(base: string, context: VoiceConversationContext): number; export declare function voicePersonaBudget(base: string, maxChars?: number, actions?: boolean, user?: VoiceUserSnapshot): number; export declare function voiceConversationInstructions(base: string, context: VoiceConversationContext): string;