/**
 * Token Optimizer Engine
 *
 * Intelligent token allocation using AdaptiveKVMerge principles.
 */
export declare class TokenOptimizer {
    private maxTokens;
    private qualityThreshold;
    private compressionHistory;
    constructor(maxTokens?: number);
    /**
     * Assess task complexity (0-1)
     */
    assessComplexity(task: string): number;
    /**
     * Determine compression ratio based on complexity
     */
    getCompressionRatio(complexity: number): number;
    /**
     * Optimize token allocation
     */
    optimize(context: string[], task: string): {
        tokens: number;
        ratio: number;
        strategy: string;
    };
    /**
     * Track compression for learning
     */
    trackCompression(taskType: string, quality: number): void;
    /**
     * Get average quality for a task type
     */
    getAverageQuality(taskType: string): number;
}
export declare const createTokenOptimizer: (maxTokens?: number) => TokenOptimizer;
