import type { QueryPromise, SQL } from 'drizzle-orm'; import type { ChainedMethods } from '../find/chainMethods'; import type { DrizzleDB, PostgresAdapter } from '../types'; import type { BuildQueryJoinAliases, BuildQueryJoins } from './buildQuery'; import { type GenericColumn } from '../types'; type Args = { adapter: PostgresAdapter; chainedMethods?: ChainedMethods; db: DrizzleDB; joinAliases: BuildQueryJoinAliases; joins: BuildQueryJoins; selectFields: Record; tableName: string; where: SQL; }; /** * Selects distinct records from a table only if there are joins that need to be used, otherwise return null */ export declare const selectDistinct: ({ adapter, chainedMethods, db, joinAliases, joins, selectFields, tableName, where, }: Args) => QueryPromise & { id: number | string; }[]>; export {}; //# sourceMappingURL=selectDistinct.d.ts.map