/**
 * stress-test.ts — Tool handler for the `stress_test` MCP tool.
 *
 * Tests a portfolio against historical crisis scenarios or custom shocks:
 *   1. Fetches current prices to establish portfolio value and position values
 *   2. For each historical scenario: maps every position to its GICS sector
 *      (sector-map.ts fallback first, then Alpha Vantage metadata), then
 *      applies the scenario's sector return to compute per-position P&L
 *   3. For custom shocks (PAID only): applies ticker-level shocks first,
 *      then sector-level shocks for any remaining positions, then market_shock
 *      as the catch-all fallback
 *   4. Returns StressTestResult with per-scenario breakdown and summary
 *
 * Auth and tier gating are handled upstream — this handler receives
 * pre-validated input and an already-resolved AuthContext.
 */
import type { StressTestInput } from "../schemas/stress-test.js";
import type { AuthContext } from "../middleware/auth.js";
export interface StressTestEnv {
    PRICE_CACHE: KVNamespace;
}
export interface ToolResult {
    content: [{
        type: "text";
        text: string;
    }];
    isError?: boolean;
}
export declare function handleStressTest(input: StressTestInput, env: StressTestEnv, _authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=stress-test.d.ts.map