import { PrismaClient } from '../generated/prisma/client'; import type { CombiTableColumn } from "../combitabletypes"; import { SearchUrl } from '../searchurl'; import type { PrismaFields } from '../searchurl'; export declare type CombiTablePrismaClient = PrismaClient; /** * Return a prisma representation of the filter and search parameters * @param models The PrismaModel for the model this is searching. You can * pass `(prisma as {[key:string]:any})._runtimeDataModel.models as RuntimeDataModel` for this * @param modelName the Prisma name of the model (capitalized) * @param defaultSearch If no search field is given in the command line, * sort by this. * @param columns column configuration for all filterable/sortable columns * @param tz the IANA timezone name to user-passed dates are in, for example if the * user entered "2026-05-01 12:00" in Zurich time, pass "Europe/Zurich" as * time timezone. When comparing with the database, it will use this in UTC, * ie "2026-05-01 10:00". Default is UTC (so the date remains unchanged) * @returns an object that can be passed straight to a prisma findMany call. */ export declare function getPrismaFields(su: SearchUrl, prisma: PrismaClient | null, modelName: string, { defaultSearch, columns, tz, }?: { defaultSearch?: string; columns?: CombiTableColumn[]; tz?: string; }): PrismaFields;