import type { Document } from 'payload'; import type { ClickHouseAdapter, UpsertManyArgs } from '../types.js'; /** * Bulk upsert operation - insert multiple documents in a single batch * * Uses ClickHouse's native batch insert for optimal performance. * Documents with an existing `id` will create a new version (ReplacingMergeTree handles dedup). * Documents without an `id` will have one generated. * * @example * ```ts * const docs = await payload.db.upsertMany({ * collection: 'posts', * docs: [ * { data: { title: 'Post 1', slug: 'post-1' } }, * { data: { id: 'existing-id', title: 'Updated Post' } }, * ] * }) * ``` */ export declare function upsertMany(this: ClickHouseAdapter, args: UpsertManyArgs): Promise; //# sourceMappingURL=upsertMany.d.ts.map