import type { ExtensionAPI } from './pi-ext-types.js'; /** The cortex-slack server (slack_send_file tool) is loaded only for sessions that originate from * Slack. The PI adapter forwards the source channel into the subprocess env as SLACK_CHANNEL; the * SlackAdapter tags its conduits with the `slack:` prefix, so that prefix is the source marker. */ export declare function shouldLoadSlack(channel: string | undefined): boolean; /** The cortex-feishu server (Feishu document tools) is loaded only for sessions that originate from * Feishu. The PI adapter forwards the source channel into the subprocess env as SLACK_CHANNEL; the * FeishuAdapter tags its conduits with the `feishu:` prefix, so that prefix is the source marker. */ export declare function shouldLoadFeishu(channel: string | undefined): boolean; type PiTextContent = { type: 'text'; text: string; }; /** Map an MCP CallToolResult content item to a PI text content item. */ export declare function mapMcpContent(item: { type: string; text?: string; data?: string; mimeType?: string; resource?: { uri?: string; text?: string; blob?: string; mimeType?: string; }; [key: string]: unknown; }): PiTextContent; export default function mcpBridge(pi: ExtensionAPI): Promise; export declare const _test: { mapMcpContent: typeof mapMcpContent; shouldLoadSlack: typeof shouldLoadSlack; shouldLoadFeishu: typeof shouldLoadFeishu; CORE_SERVER_PATH: string; EXT_SERVER_PATH: string; SLACK_SERVER_PATH: string; FEISHU_SERVER_PATH: string; }; export {};