import type { DB } from '../../data/db/index.js'; import type { PermissionMeta } from '../di/types.js'; export interface BatchTargets { readonly ids?: string[]; readonly filters?: Record; } export interface BatchAction { readonly permission?: PermissionMeta; readonly preview?: (db: DB, auth: TAuth, tenant: string | null, targets: BatchTargets) => Promise; readonly execute: (db: DB, auth: TAuth, tenant: string | null, targets: BatchTargets) => Promise; } export interface BatchRequest { readonly action: string; readonly targets: BatchTargets; } export declare function validateBatchRequest(body: unknown, validActions: string[]): BatchRequest; //# sourceMappingURL=batch.d.ts.map