import type { ImportIssue, ImportMode } from '../../../services/types.js'; import type { StoreFixture } from '../../../services/ports/lookup.js'; import type { CsvLimits } from '../../../services/reader/readCsv.js'; import type { ValidationSummary } from '../../../services/validate/validateFile.js'; import { MemoryLookup } from '../../../testing/MemoryLookup.js'; export interface Validated { summary: ValidationSummary; issues: ImportIssue[]; /** The natural key given with each issue, in the same order. */ keys: Array; lookup: MemoryLookup; /** How many times the file was opened. */ opened: number; } export interface RunOptions { mode?: ImportMode; store?: StoreFixture; limits?: Partial; batchSize?: number; signal?: AbortSignal; /** Cuts the file into chunks of this size (a boundary must change nothing). */ chunkSize?: number; now?: number; } /** Validates a category file against a store described as data. */ export declare function validateCategories(file: string | Uint8Array, options?: RunOptions): Promise; /** Validates a product file against a store described as data. */ export declare function validateProducts(file: string | Uint8Array, options?: RunOptions): Promise; /** Validates a customer addresses file against a store described as data. */ export declare function validateAddresses(file: string | Uint8Array, options?: RunOptions): Promise; /** Validates a customers file against a store described as data. */ export declare function validateCustomers(file: string | Uint8Array, options?: RunOptions): Promise; declare const VALIDATORS: { readonly category: import("../../../services/entities/definition.js").EntityValidator; readonly product: import("../../../services/entities/definition.js").EntityValidator; readonly customer: import("../../../services/entities/definition.js").EntityValidator; readonly customerAddress: import("../../../services/entities/definition.js").EntityValidator; }; export declare function validateEntity(entity: keyof typeof VALIDATORS, file: string | Uint8Array, options?: RunOptions): Promise; export {};