import type { BackendType } from 'brain-shared'; import type { IncomingMessage, ReplyStrategy, AgentResult } from '../types.js'; import type { CloudChannel } from '../relay/cloud-channel.js'; /** Initialize agent module with CloudChannel instance for WSS replies. */ export declare function initAgent(channel: CloudChannel): void; /** * Determine the effective backend for a conversation. * * Resolution order (highest to lowest priority): * 1. Per-conversation `#backend ` override * 2. Global `#default-backend ` setting * 3. `config.claude.backend` from the config file * * Unknown values are ignored (with a warning) and fall through to the next * tier so that a typo'd override doesn't permanently break a conversation. */ export declare function resolveBackend(conversationKey: string): BackendType; /** * Process an incoming message through the configured backend (Claude or * Copilot CLI). * * @param incoming - The parsed incoming message * @param conversationKey - Unique key for the conversation (e.g. "cloud_teams:{oid}:{convId}") * @param replyStrategy - How to deliver intermediate results (response or push) * @returns The agent's response text */ export declare function processMessage(incoming: IncomingMessage, conversationKey: string, replyStrategy: ReplyStrategy): Promise;