import { type LanguageModel } from "ai"; import type { RuleResult, AuditSummary } from "../types.js"; import type { TriageResult } from "./types.js"; export interface TriageOptions { enabled: boolean; model: LanguageModel; providerId: string; modelId: string; maxInputTokens?: number; maxOutputTokens?: number; /** Hard cap on estimated USD for this call. Refuse pre-flight if exceeded. */ maxCostUsd?: number; /** USD already spent on successful triages today (used against dailyBudgetUsd). */ spentTodayUsd?: number; /** Daily budget ceiling. Refuse pre-flight if spentTodayUsd + this call's estimate > budget. */ dailyBudgetUsd?: number; cache?: { dir: string; ttlMs: number; } | false; signal?: AbortSignal; } export interface TriageOutcome { result?: TriageResult; skipReason?: string; } export declare function triageFindings(findings: RuleResult[], pageCount: number, options: TriageOptions): Promise; /** * High-level triage entry point for server-side callers (e.g. the web API). * * Unlike `triageFindings`, this function: * - Accepts an `AuditSummary` directly. * - Resolves the language model automatically via `createLanguageModel`. * - Returns a `TriageResult` (throws on skip / error). * * @param summary - The audit summary to triage. * @param opts - Optional overrides: `maxCostUsd` (default 0.5). */ export declare function triage(summary: AuditSummary, opts?: { maxCostUsd?: number; }): Promise; //# sourceMappingURL=triage.d.ts.map