import { r as HsqldbTable } from "../../script-pkZ2Kor4.js"; import { t as SqlComparisonOperator } from "../../lexer-DgsW7jMA.js"; import { d as SqlOperand, h as SqlSelectStatement, l as SqlLiteral, p as SqlPredicate } from "../../parser-CoIi0l9I.js"; import { t as ColumnResolver } from "../../evaluate-columns-cOo8fOfT.js"; import { ContentCellValue } from "document-schema.js"; //#region src/odb/sql/evaluate-predicates.d.ts type Truth = "true" | "false" | "unknown"; declare function sqlFailure(sql: string): (message: string) => Error; declare function compareValues(left: ContentCellValue, right: ContentCellValue, sql: string): number; declare function truthOfComparison(ordering: number, operator: SqlComparisonOperator): Truth; declare function notTruth(truth: Truth): Truth; declare function andTruth(left: Truth, right: Truth): Truth; declare function orTruth(left: Truth, right: Truth): Truth; declare function literalToValue(literal: SqlLiteral): ContentCellValue; declare function likePatternToRegExp(pattern: string): RegExp; declare function operandValue(operand: SqlOperand, row: readonly ContentCellValue[], resolver: ColumnResolver): ContentCellValue; declare function evaluateLike(value: ContentCellValue, pattern: string, sql: string): Truth; declare function evaluateIn(value: ContentCellValue, values: readonly SqlLiteral[], sql: string): Truth; declare function evaluatePredicate(predicate: SqlPredicate, row: readonly ContentCellValue[], resolver: ColumnResolver, tables: readonly HsqldbTable[], sql: string): Truth; declare function evaluateInSubquery(value: ContentCellValue, query: SqlSelectStatement, tables: readonly HsqldbTable[], outerResolver: ColumnResolver, outerRow: readonly ContentCellValue[], sql: string): Truth; declare function evaluateExists(query: SqlSelectStatement, tables: readonly HsqldbTable[], outerResolver: ColumnResolver, outerRow: readonly ContentCellValue[]): Truth; //#endregion export { Truth, andTruth, compareValues, evaluateExists, evaluateIn, evaluateInSubquery, evaluateLike, evaluatePredicate, likePatternToRegExp, literalToValue, notTruth, operandValue, orTruth, sqlFailure, truthOfComparison };