/**
 * monte-carlo.ts — Tool handler for the `monte_carlo_simulation` MCP tool.
 *
 * Given a portfolio of positions:
 *   1. Fetches historical prices for all tickers
 *   2. Computes portfolio weights and current value
 *   3. Estimates drift (mu) and volatility (sigma) from the portfolio return series
 *   4. Runs GBM or jump-diffusion simulation for the requested number of paths
 *   5. Computes percentile distribution, probability of loss, expected shortfall,
 *      best/worst path, and std dev of terminal values
 *   6. Returns MonteCarloResult 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 { MonteCarloInput } from "../schemas/monte-carlo.js";
import type { AuthContext } from "../middleware/auth.js";
export interface MonteCarloEnv {
    PRICE_CACHE: KVNamespace;
}
export interface ToolResult {
    content: [{
        type: "text";
        text: string;
    }];
    isError?: boolean;
}
export declare function handleMonteCarlo(input: MonteCarloInput, env: MonteCarloEnv, _authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=monte-carlo.d.ts.map