UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

10 lines 377 B
/** * Calculate estimated token count from text content. * Uses a simple approximation: characters / 4 * This is a quick estimate used for UI display purposes. * * @param content - The text content to estimate tokens for * @returns Estimated token count */ export declare const calculateTokens: (content: string) => number; //# sourceMappingURL=token-calculator.d.ts.map