/**
 * price-history.ts — MCP tool handler for `price_history`.
 *
 * Fetches raw OHLCV price data for one or more tickers and returns it
 * in the canonical PricePoint format.  Optionally aggregates daily bars
 * to weekly or monthly intervals.
 *
 * Tier gates (enforced by middleware BEFORE this handler is called):
 *   FREE  — max 1 ticker, max 252 days
 *   PAID  — up to 20 tickers, up to 1260 days
 *
 * Handler signature:
 *   handlePriceHistory(input, env, authContext) -> ToolResult
 */
import type { PriceHistoryInput } from "../schemas/price-history.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 `price_history` 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 PriceHistoryResult.
 */
export declare function handlePriceHistory(input: PriceHistoryInput, env: Env, _authContext: AuthContext): Promise<ToolResult>;
//# sourceMappingURL=price-history.d.ts.map