import { Prisma } from "@prisma/client"; import { ColumnDefinition, type TableNames } from "../tableDefinitions"; import { FilterState } from "../types"; import { timeFilter } from "../interfaces/filters"; import { z } from "zod/v4"; /** * SECURITY: This function must only be used, when all its inputs were verified with zod. */ export declare function tableColumnsToSqlFilterAndPrefix(filters: FilterState, tableColumns: ColumnDefinition[], table: TableNames): Prisma.Sql; /** * SECURITY: This function must only be used, when all its inputs were verified with zod. * Converts filter state and table columns to a Prisma SQL filter. */ export declare function tableColumnsToSqlFilter(filters: FilterState, tableColumns: ColumnDefinition[], table: TableNames): Prisma.Sql; declare const dateOperators: readonly [">", "<", ">=", "<="]; export declare const datetimeFilterToPrismaSql: (safeColumn: string, operator: (typeof dateOperators)[number], value: Date) => Prisma.Sql; export declare const datetimeFilterToPrisma: (timestampFilter: z.infer) => { gte: Date; gt?: undefined; lte?: undefined; lt?: undefined; } | { gt: Date; gte?: undefined; lte?: undefined; lt?: undefined; } | { lte: Date; gte?: undefined; gt?: undefined; lt?: undefined; } | { lt: Date; gte?: undefined; gt?: undefined; lte?: undefined; } | { gte?: undefined; gt?: undefined; lte?: undefined; lt?: undefined; }; export {}; //# sourceMappingURL=filterToPrisma.d.ts.map