import type { ThinkingLevel } from '@earendil-works/pi-agent-core'; import type { SessionAgentConfig } from '../../session/config-types.js'; import type { SessionMetadata } from '../../session/types.js'; import type { SideChatConfig } from './types.js'; export declare function normalizeSideChatAgentId(value: unknown): string | undefined; export declare function normalizeSideChatServiceTier(value: unknown): string | undefined; export declare function isSideChatAgentAvailable(agentId: string): boolean; /** * Resolve the default executing agent for a new side chat. * Inherits the parent conversation's agent (built-in or external) when enabled, * otherwise falls back to the catalog's default enabled agent. */ export declare function resolveSideChatDefaultAgentId(parentMetadata: Pick, requestedAgentId?: string): { ok: true; agentId: string; } | { ok: false; error: string; }; /** * Resolve a built-in default model ref for an embedded agent. */ export declare function resolveBuiltInSideChatModelRef(options: { agentId?: string; parentConversationId?: string; inheritParentSessionModel?: boolean; getSessionModelRef?: (conversationId: string) => string; }): Promise; /** * Resolve the initial built-in model ref for a side chat. * External agent parent conversations do not pass their external bare model id * into embedded built-in model resolution. */ export declare function resolveSideChatDefaultModelRef(parentConversationId: string, getSessionModelRef: (conversationId: string) => string): Promise; /** * Resolve the initial thinking level for a side chat without instantiating an * embedded Agent for an external runtime parent conversation. */ export declare function resolveSideChatDefaultThinkingLevel(parentConversationId: string, getSessionThinkingLevel: (conversationId: string) => ThinkingLevel): ThinkingLevel; /** * Resolve full effective SideChatConfig (`agentId`, `modelRef`, `thinkingLevel`, `serviceTier`) * for either a built-in or external runtime agent. */ export declare function resolveSideChatConfigForAgent(params: { agentId: string; parentConversationId?: string; parentAgentId?: string; parentConfig?: SessionAgentConfig | null; currentConfig?: SideChatConfig; requestedModelRef?: string; requestedThinkingLevel?: ThinkingLevel; requestedServiceTier?: string | null; hasRequestedServiceTier?: boolean; strictModelValidation?: boolean; getDefaultModelRef?: (conversationId: string) => string | Promise; getDefaultThinkingLevel?: (conversationId: string) => ThinkingLevel | Promise; getSessionModelRef?: (conversationId: string) => string; getSessionThinkingLevel?: (conversationId: string) => ThinkingLevel; }): Promise<{ ok: true; config: SideChatConfig; } | { ok: false; error: string; }>;