/**
 * analyze-risk.ts — Tool handler for the `analyze_risk` MCP tool.
 *
 * Workhorse risk tool. Given a portfolio of positions:
 *   1. Fetches daily prices for all tickers + benchmark
 *   2. Calculates portfolio weights from current market values
 *   3. Computes portfolio log returns
 *   4. Runs VaR (historical / parametric / cornish_fisher) and CVaR
 *   5. Computes annualised volatility, beta vs benchmark, max drawdown
 *   6. Returns RiskMetrics with a human-readable summary string
 *
 * Auth and tier gating are handled upstream — this handler receives
 * pre-validated input and an already-resolved AuthContext.
 */
import type { AnalyzeRiskInput } from "../schemas/analyze-risk.js";
import type { AuthContext } from "../middleware/auth.js";
export interface AnalyzeRiskEnv {
    PRICE_CACHE: KVNamespace;
}
export interface ToolResult {
    content: [{
        type: "text";
        text: string;
    }];
    isError?: boolean;
}
export declare function handleAnalyzeRisk(input: AnalyzeRiskInput, env: AnalyzeRiskEnv, _authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=analyze-risk.d.ts.map