/opt/canhelp/node_modules/kysely/dist/esm/parser
Edit: /opt/canhelp/node_modules/kysely/dist/esm/parser/binary-operation-parser.d.ts (2210B)
import { BinaryOperationNode } from '../operation-node/binary-operation-node.js';
import { type OperationNodeSource } from '../operation-node/operation-node-source.js';
import { type ComparisonOperator, type BinaryOperator, type Operator } from '../operation-node/operator-node.js';
import { type ExtractTypeFromReferenceExpression, type ExtractTypeFromStringReference, type ReferenceExpression, type StringReference } from './reference-parser.js';
import { type ValueExpression, type ValueExpressionOrList } from './value-parser.js';
import type { OperationNode } from '../operation-node/operation-node.js';
import type { Expression } from '../expression/expression.js';
import type { SelectType } from '../util/column-type.js';
export type OperandValueExpression
= ValueExpression>;
export type OperandValueExpressionOrList = ValueExpressionOrList | null>;
export type OperatorExpression = Operator | Expression;
export type BinaryOperatorExpression = BinaryOperator | Expression;
export type ComparisonOperatorExpression = ComparisonOperator | Expression;
export type FilterObject = {
[R in StringReference]?: ValueExpressionOrList>>;
};
export declare function parseValueBinaryOperationOrExpression(args: any[]): OperationNode;
export declare function parseValueBinaryOperation(left: ReferenceExpression, operator: BinaryOperatorExpression, right: OperandValueExpressionOrList): BinaryOperationNode;
export declare function parseReferentialBinaryOperation(left: ReferenceExpression, operator: BinaryOperatorExpression, right: OperandValueExpressionOrList): BinaryOperationNode;
export declare function parseFilterObject(obj: Readonly>, combinator: 'and' | 'or'): OperationNode;
export declare function parseFilterList(list: ReadonlyArray, combinator: 'and' | 'or', withParens?: boolean): OperationNode;