import type { GatewayDetection } from './types.js'; export declare const SKILLFM_GATEWAY_BASE_URL: string; export declare function normalizeShellGatewayBlocks(content: string, gatewayBaseUrl?: string): { content: string; removed_count: number; }; /** * 检测各 IDE 的配置 + 当前 BASE_URL */ export declare function detectIDEs(): Promise; /** * 配置一个 IDE 的 gateway BASE_URL (写 config + 提供 revert 命令) * * 真改: 在每个 config 加 ANTHROPIC_BASE_URL / OPENAI_API_BASE 指向 SkillFM gateway * 透明: 改之前 backup 原 config 到 ~/.skillfm/gateway-backup// */ export interface SetupResult { ide: string; applied: boolean; config_path?: string; backup_path?: string; revert_command?: string; error?: string; } type GatewayFetch = (input: string, init?: { method?: string; signal?: AbortSignal; }) => Promise<{ ok: boolean; status: number; json?: () => Promise; }>; export interface GatewayReadiness { ok: boolean; gateway_base_url: string; checked_url: string; status?: number; gateway_kind?: string; capabilities?: string[]; error?: string; } export interface GatewaySetupOptions { gatewayBaseUrl?: string; gatewayReadiness?: GatewayReadiness; detections?: GatewayDetection[]; fetchImpl?: GatewayFetch; timeoutMs?: number; } export declare function checkGatewayReadiness(opts?: GatewaySetupOptions): Promise; export declare function setupClaudeCodeGateway(opts?: GatewaySetupOptions): Promise; export declare function setupShellEnvGateway(opts?: GatewaySetupOptions): Promise; /** * 一键配 — 所有检测到的 IDE */ export declare function setupAllDetectedGateways(opts?: GatewaySetupOptions): Promise; export {}; //# sourceMappingURL=gateway-setup.d.ts.map