/**
 * compare-portfolios.ts — MCP tool handler for `compare_portfolios`.
 *
 * Runs a full risk/return analysis on each named portfolio and compares
 * them side-by-side. Identifies the winner by Sharpe ratio and by VaR.
 *
 * PAID tier only. Free users receive a TierError before this handler runs,
 * but we also guard at the top of the function as defense-in-depth.
 */
import type { ComparePortfoliosInput } from "../schemas/compare-portfolios.js";
import type { AuthContext } from "../middleware/auth.js";
export interface Env {
    PRICE_CACHE: KVNamespace;
    USER_STATE: DurableObjectNamespace;
}
export interface ToolResult {
    content: [{
        type: "text";
        text: string;
    }];
    isError?: boolean;
}
/**
 * Handle a `compare_portfolios` tool call.
 *
 * @param input       Validated input from the Zod schema
 * @param env         Cloudflare Worker environment bindings
 * @param authContext Resolved user auth context
 */
export declare function handleComparePortfolios(input: ComparePortfoliosInput, env: Env, authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=compare-portfolios.d.ts.map