/**
 * Vigthoria Balanced 4B — fast agent path classifier (~0.7–2s on local inference :8016).
 * Regex/trivial detection always wins; LLM router refines ambiguous build prompts only.
 */
export type AgentRoutePath = 'template-instant' | 'v3-agent' | 'analysis-only';
export interface BalancedRouterJson {
    path?: string;
    task_kind?: string;
    taskKind?: string;
    fast_path?: string | null;
    fastPath?: string | null;
    confidence?: number;
    reason?: string;
}
export interface BalancedRouterResult {
    ok: boolean;
    raw?: string;
    parsed?: BalancedRouterJson;
    latencyMs?: number;
    model?: string;
    endpoint?: string;
    error?: string;
}
export declare function parseBalancedRouterJson(raw: string): BalancedRouterJson | null;
/**
 * Inference bases for Balanced 4B routing only.
 * Local developer machines must opt in (env) — avoids ~1.5s localhost probe on every Windows turn.
 */
export declare function getInferenceRouterBaseUrls(selfHostedUrl: string | null): string[];
export declare function isFastInferenceRouterAvailable(selfHostedUrl: string | null, timeoutMs?: number): Promise<boolean>;
export declare function routeWithBalanced4b(prompt: string, selfHostedUrl: string | null, options?: {
    timeoutMs?: number;
}): Promise<BalancedRouterResult>;
export declare function shouldUseBalancedRouter(prompt: string, regexTaskKind?: string): boolean;
