import type * as ElevenLabs from "../../../api/index"; /** Options for {@link Expr.llm}. */ export interface LlmValueOptions { /** The type of value the LLM extracts. Defaults to `"boolean"`. */ type?: "boolean" | "string" | "integer" | "number"; /** Allowed values, for `"string"` values. */ enum?: string[]; } /** A value accepted wherever an expression is expected. Plain values become literals. */ export type ExprInput = Expr | string | number | boolean | null; /** * A workflow expression, compiled to the API's expression AST. * * @example * Expr.anyOf(Expr.variable("tier").eq("gold"), Expr.variable("orders").gte(10)) */ export declare class Expr { private readonly _node; private constructor(); /** The value of a dynamic variable. */ static variable(name: string): Expr; /** A string, number, boolean or null literal. */ static literal(value: string | number | boolean | null): Expr; /** * A value the LLM extracts from the conversation, described by `description`. * * @example * Expr.llm("How satisfied is the caller, from 1 to 10?", { type: "number" }).lt(5) */ static llm(description: string, options?: LlmValueOptions): Expr; /** True when every expression is true. */ static allOf(...exprs: ExprInput[]): Expr; /** True when at least one expression is true. */ static anyOf(...exprs: ExprInput[]): Expr; /** `whenTrue` if `condition` is true, otherwise `whenFalse`. */ static ifElse(condition: ExprInput, whenTrue: ExprInput, whenFalse: ExprInput): Expr; /** Wraps an existing AST node. */ static fromModel(node: ElevenLabs.AstNodeInput): Expr; eq(other: ExprInput): Expr; neq(other: ExprInput): Expr; gt(other: ExprInput): Expr; gte(other: ExprInput): Expr; lt(other: ExprInput): Expr; lte(other: ExprInput): Expr; add(other: ExprInput): Expr; sub(other: ExprInput): Expr; mul(other: ExprInput): Expr; div(other: ExprInput): Expr; toModel(): ElevenLabs.AstNodeInput; private _binary; }