import exportProductsHandler from './handlers/exportProductsHandler.ts'; import exportAssortmentsHandler from './handlers/exportAssortmentsHandler.ts'; import exportFiltersHandler from './handlers/exportFiltersHandler.ts'; import { z } from 'zod/v4-mini'; import type { CSVFileResult } from './handlers/generateCSVFileAndUrl.ts'; export declare const EXPORTS_DIRECTORY = "exports"; export type ExportFiles = Record; export interface BulkExportOperationResult { entity: string; success: boolean; files: ExportFiles; } export interface BulkExportHandler { payloadSchema?: z.ZodMiniObject; (params: Record, locales: string[], unchainedAPI: T): Promise; } export interface BulkExporterOptions { handlers?: Record; } export default function createBulkExporterFactory(bulkExporterOptions?: BulkExporterOptions): { createBulkExporter: ({ entity }: { entity: string; }) => { validate: (payload: Record) => Promise; execute: (payload: Record, locales: string[], unchainedApi: T) => Promise<({ entity: string; success: boolean; files: ExportFiles; } | null)[]>; }; }; export type BulkExporter = ReturnType; export { exportAssortmentsHandler, exportProductsHandler, exportFiltersHandler };