import type * as ElevenLabs from "../../../api/index"; import { Expr } from "./Expr"; export type ConditionModel = ElevenLabs.WorkflowEdgeModelInputForwardCondition; export interface ConditionOptions { /** Label shown on the edge in the workflow editor. */ label?: string; } /** * When an edge may be followed. A plain string passed to `when()` is shorthand for `Condition.llm()`, * and an `Expr` is shorthand for `Condition.expr()`. */ export declare class Condition { private readonly _model; private constructor(); /** Followed when the LLM judges `condition` to be true. */ static llm(condition: string, options?: ConditionOptions): Condition; /** Followed when `expression` evaluates to true. */ static expr(expression: Expr, options?: ConditionOptions): Condition; /** Always followed. */ static always(options?: ConditionOptions): Condition; /** Followed when every tool in a tool node succeeded. */ static success(options?: ConditionOptions): Condition; /** Followed when any tool in a tool node failed. */ static failure(options?: ConditionOptions): Condition; toModel(): ConditionModel; } /** A value accepted wherever a condition is expected. */ export type ConditionInput = Condition | Expr | string; export declare function toCondition(input: ConditionInput): Condition;