import { BaseGuardrailPlugin } from './base-plugin.js'; import { GuardrailPhase, GuardrailContext, GuardrailResult } from '../types.js'; /** * Token limiter plugin - limits input/output token counts */ export declare class TokenLimiterPlugin extends BaseGuardrailPlugin { name: string; phases: GuardrailPhase[]; private maxInputTokens; private maxOutputTokens; private warnAtPercentage; initialize(config: Record): Promise; execute(phase: GuardrailPhase, context: GuardrailContext): Promise; private checkInputTokens; private checkOutputTokens; /** * Estimate token count from text * Uses a simple heuristic: ~4 characters per token for English text * This is a rough approximation - for accuracy, use tiktoken */ estimateTokenCount(text: string): number; /** * Get configured limits (for testing/monitoring) */ getLimits(): { maxInputTokens: number; maxOutputTokens: number | undefined; }; } //# sourceMappingURL=token-limiter.d.ts.map