/** * ThreadWeaver — Complexity Router * Determines standard/heavy mode and sparse-activates relevant agents. */ import type { AgentRole, ComplexityAnalysis, ThreadWeaverConfig } from "./types"; /** * Compute complexity score (0-11). * * Token score: 0-3 * Domain score: 0-3 * Heavy signal score: 0-3 * Question score: 0-2 */ export declare function computeComplexityScore(query: string): { score: number; tokens: number; domainCount: number; matchedDomains: string[]; heavySignals: number; questions: number; }; /** * Compute domain relevance score for a specialist agent against the query. * Returns 0.0-1.0 indicating how relevant this agent is. */ export declare function computeDomainRelevance(agent: AgentRole, query: string): number; /** * Sparse-activate specialist agents based on query domain relevance. * Returns only specialists above the activation threshold. */ export declare function sparseActivate(query: string, threshold: number): AgentRole[]; /** * Route complexity and select activated agents. */ export declare function routeComplexity(query: string, config: ThreadWeaverConfig): ComplexityAnalysis;