/** * MCP plan-history tools (v3.1) * * 3 tools: * - explain_query_with_advice: EXPLAIN + IndexAdvisor * - compare_query_plans: PlanDiff between two snapshots * - list_query_plans: recent PlanHistory entries */ import type { QueryAnalyzer } from '../../core/query-analyzer.js'; import type { PlanHistory } from '../../core/plan-history.js'; export declare function buildExplainQueryWithAdviceHandler(qa: QueryAnalyzer, planHistory: PlanHistory): (args: { sql: string; profileName?: string; persist?: boolean; }) => Promise<{ explain: import("../../core/query-analyzer-types.js").ExplainResult; advice: import("../../core/index-advisor.js").IndexAdvice[]; captured: boolean; }>; export declare function buildCompareQueryPlansHandler(planHistory: PlanHistory): (args: { queryHash: string; entryA?: number; entryB?: number; }) => Promise<{ error: string; count: number; from?: undefined; to?: undefined; diff?: undefined; } | { from: { id: number | undefined; capturedAt: string; sqlOriginal: string; }; to: { id: number | undefined; capturedAt: string; sqlOriginal: string; }; diff: import("../../core/plan-diff.js").PlanDiffResult; error?: undefined; count?: undefined; }>; export declare function buildListQueryPlansHandler(planHistory: PlanHistory): (args: { limit?: number; queryHash?: string; }) => Promise<{ plans: { id: number | undefined; queryHash: string; capturedAt: string; sqlOriginal: string; dbType: string; profileName: string | null; }[]; }>; export declare const PLAN_HISTORY_TOOL_DESCRIPTIONS: { explain_query_with_advice: string; compare_query_plans: string; list_query_plans: string; }; //# sourceMappingURL=plan-history.d.ts.map