import type { SQL } from 'drizzle-orm';
import { type Where } from 'payload';
import type { DrizzleAdapter, GenericTable } from '../types.js';
import type { PolymorphicJoinWherePlan } from './createPolymorphicJoinWherePlan.js';
type BuildPolymorphicJoinWhereArgs = {
    adapter: DrizzleAdapter;
    collection: string;
    table: GenericTable;
    where: Where;
    wherePlan: PolymorphicJoinWherePlan;
};
/**
 * Builds a where clause for one collection before the polymorphic branches are combined. A field
 * that is absent from this collection resolves to SQL NULL, and relationTo resolves to the current
 * collection slug.
 */
export declare const buildPolymorphicJoinWhere: ({ adapter, collection, table, where, wherePlan, }: BuildPolymorphicJoinWhereArgs) => SQL | undefined;
export {};
//# sourceMappingURL=buildPolymorphicJoinWhere.d.ts.map