import { JoinNode } from '../operation-node/join-node.js'; import { OperationNodeSource } from '../operation-node/operation-node-source.js'; import { ComparisonOperatorExpression, OperandValueExpressionOrList } from '../parser/binary-operation-parser.js'; import { ExpressionOrFactory } from '../parser/expression-parser.js'; import { ReferenceExpression } from '../parser/reference-parser.js'; import { SqlBool } from '../util/type-utils.js'; export declare class JoinBuilder implements OperationNodeSource { #private; constructor(props: JoinBuilderProps); /** * Just like {@link WhereInterface.where} but adds an item to the join's * `on` clause instead. * * See {@link WhereInterface.where} for documentation and examples. */ on>(lhs: RE, op: ComparisonOperatorExpression, rhs: OperandValueExpressionOrList): JoinBuilder; on(expression: ExpressionOrFactory): JoinBuilder; /** * Just like {@link WhereInterface.whereRef} but adds an item to the join's * `on` clause instead. * * See {@link WhereInterface.whereRef} for documentation and examples. */ onRef(lhs: ReferenceExpression, op: ComparisonOperatorExpression, rhs: ReferenceExpression): JoinBuilder; /** * Adds `on true`. */ onTrue(): JoinBuilder; /** * Simply calls the provided function passing `this` as the only argument. `$call` returns * what the provided function returns. */ $call(func: (qb: this) => T): T; toOperationNode(): JoinNode; } export interface JoinBuilderProps { readonly joinNode: JoinNode; }