/** * Deterministic state-based routing. * * Mirrors Python's `Route` class. Use when the next step is decided by a * rule rather than by the LLM. * * const router = new Route("tier") * .eq("VIP", vipAgent) * .contains("trial", trialAgent) * .otherwise(defaultAgent); */ import { BuilderBase } from "../core/builder-base.js"; import type { StatePredicate } from "../core/types.js"; export declare class Route extends BuilderBase> { private _key; private _branches; private _default; constructor(key: string, name?: string); protected _clone(): this; private _addBranch; /** Match when state[key] === value (strict equality). */ eq(value: unknown, agent: BuilderBase | unknown): this; /** Match when state[key] !== value. */ ne(value: unknown, agent: BuilderBase | unknown): this; /** Match when String(state[key]).includes(sub). */ contains(sub: string, agent: BuilderBase | unknown): this; /** Match when state[key] > n (numeric). */ gt(n: number, agent: BuilderBase | unknown): this; /** Match when state[key] < n (numeric). */ lt(n: number, agent: BuilderBase | unknown): this; /** Match when state[key] >= n. */ gte(n: number, agent: BuilderBase | unknown): this; /** Match when state[key] <= n. */ lte(n: number, agent: BuilderBase | unknown): this; /** Custom predicate branch. */ when(pred: StatePredicate, agent: BuilderBase | unknown): this; /** Default fallback. */ otherwise(agent: BuilderBase | unknown): this; build(): Record; } //# sourceMappingURL=index.d.ts.map