/** SPDX-License-Identifier: MIT */ import type { ChatRequest } from "./fingerprint.js"; import { type FreshnessClass } from "./freshness.js"; export type PolicyMode = "bypass" | "exact_only" | "full"; export type PolicyResult = { mode: PolicyMode; reason: string; freshness: FreshnessClass; }; /** True when the request carries real tool surface (empty arrays do not count). */ export declare function hasActiveTools(body: ChatRequest): boolean; /** Forced tool choice. `"auto"` and `"none"` stay eligible when turn cache is on. */ export declare function isToolChoiceForced(body: ChatRequest): boolean; export declare function decidePolicy(body: ChatRequest, temperatureMax: number, opts?: { freshnessMode?: "on" | "off"; turnCache?: boolean; }): PolicyResult;