import { SemanticLayerCompiler, SecurityContext } from '../server/index.js'; import { MCPToolResult } from './mcp-tools.js'; export interface CubeToolHandlerDeps { semanticLayer: SemanticLayerCompiler; getSecurityContext: (meta?: unknown) => SecurityContext | Promise; wrapContent: (result: unknown) => MCPToolResult; wrapError: (error: unknown) => MCPToolResult; } /** Execute the `discover` tool. */ export declare function runDiscoverTool(deps: CubeToolHandlerDeps, args: unknown): Promise; /** Execute the `validate` tool — security context is optional (SQL omitted without auth). */ export declare function runValidateTool(deps: CubeToolHandlerDeps, args: unknown, meta?: unknown): Promise; /** * Execute the `load` / `chart` tools. Both run the same query path; `chart` * additionally carries `_meta.ui` on its definition so the result renders in the * MCP App UI. */ export declare function runLoadTool(deps: CubeToolHandlerDeps, args: unknown, meta?: unknown): Promise;