type CommandRunner = (command: string, args: string[], opts?: { env?: NodeJS.ProcessEnv; }) => Promise<{ exitCode: number | null; stdout: string; stderr: string; }>; export interface OpenClawMcpRepairOptions { dryRun?: boolean; now?: Date; sinceMinutes?: number; serviceName?: string; logPath?: string; sidecarUrl?: string; runner?: CommandRunner; fetchImpl?: typeof fetch; env?: NodeJS.ProcessEnv; uid?: number; } export interface OpenClawMcpRepairResult { ok: boolean; dry_run: boolean; sidecar: { ok: boolean; url: string; status?: number; version?: string; error?: string; }; openclaw: { service: string; active: boolean | null; detail: string; }; log: { path: string; since_minutes: number; not_connected_seen: boolean; matching_lines: string[]; }; action: 'none' | 'restart_gateway' | 'start_sidecar_required'; command_results: Array<{ command: string; args: string[]; ok: boolean; exit_code: number | null; stdout: string; stderr: string; }>; hint_for_agent: string; error?: string; } export declare function defaultOpenClawLogPath(now?: Date): string; export declare function detectOpenClawMcpBreakage(input: { logText: string; now?: Date; sinceMinutes?: number; }): { not_connected_seen: boolean; matching_lines: string[]; }; export declare function repairOpenClawMcpConnection(opts?: OpenClawMcpRepairOptions): Promise; export {}; //# sourceMappingURL=openclaw-gateway.d.ts.map