/**
 * correlation-matrix.ts — MCP tool handler for `correlation_matrix`.
 *
 * Fetches prices for all requested tickers, computes a pairwise correlation
 * matrix using the specified method (pearson / spearman / kendall), identifies
 * the highest- and lowest-correlated pairs, and computes eigenvalues of the
 * matrix for PCA-style risk decomposition.
 *
 * Tier gates (enforced by middleware BEFORE this handler is called):
 *   FREE  — max 10 tickers
 *   PAID  — up to 50 tickers
 *
 * Handler signature matches the rest of the tool layer:
 *   handleCorrelationMatrix(input, env, authContext) -> ToolResult
 */
import type { CorrelationMatrixInput } from "../schemas/correlation-matrix.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 the `correlation_matrix` MCP tool.
 *
 * @param input        Validated input (parsed by Zod schema upstream).
 * @param env          Cloudflare Worker environment bindings.
 * @param authContext  Resolved auth/tier context from middleware.
 * @returns            ToolResult with JSON-serialised CorrelationMatrixResult.
 */
export declare function handleCorrelationMatrix(input: CorrelationMatrixInput, env: Env, authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=correlation-matrix.d.ts.map