/**
 * Finish-reason translation driven by the `finishReasons` tables in
 * `src/lib/providers/rules/<id>.json`. Every provider wire and proxy format
 * reads its table here instead of hard-coding a switch.
 */
import type { ProviderFinishReasonMap } from "../../types/index.js";
/** The named finish-reason table from a rules file; throws when it is missing. */
export declare function getFinishReasonMap(id: string, name: string): ProviderFinishReasonMap;
/** Translate one finish reason through a table (see ProviderFinishReasonMap). */
export declare function translateFinishReason(table: ProviderFinishReasonMap, raw: string | null | undefined, hadToolCallsAtCap?: boolean): string | null;
