/**
 * optimize-portfolio.ts — MCP tool handler for `optimize_portfolio`.
 *
 * Fetches historical prices for the requested tickers, estimates expected
 * returns and a covariance matrix, then runs mean-variance optimization
 * (Markowitz) for the selected objective. Also generates 20 points along
 * the efficient frontier.
 *
 * 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 { OptimizePortfolioInput } from "../schemas/optimize-portfolio.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 an `optimize_portfolio` tool call.
 *
 * @param input       Validated input from the Zod schema
 * @param env         Cloudflare Worker environment bindings
 * @param authContext Resolved user auth context (tier, userId, etc.)
 */
export declare function handleOptimizePortfolio(input: OptimizePortfolioInput, env: Env, authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=optimize-portfolio.d.ts.map