import * as _inkeep_agents_core3 from "@inkeep/agents-core";
import { BreakdownComponentDef, ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown } from "@inkeep/agents-core";

//#region src/domains/run/utils/token-estimator.d.ts

/**
 * Estimates the number of tokens in a text string using character-based approximation.
 *
 * @param text - The text to estimate tokens for
 * @returns Estimated token count (approximately text.length / 4)
 */
declare function estimateTokens(text: string | undefined | null): number;
/**
 * Result from prompt assembly that includes both the prompt and token breakdown.
 */
interface AssembleResult {
  /** The assembled prompt string */
  prompt: string;
  /** Token breakdown for each component */
  breakdown: _inkeep_agents_core3.ContextBreakdown;
}
//#endregion
export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };