export type RowMap = Record; export type RowArray = V[]; export type Row = RowMap | RowArray; export interface RowValidationResult { row: R | null; isValid: boolean; reason?: string; } export type RowValidatorCallback = (error: Error | null, result?: RowValidationResult) => void; export type RowTransformCallback = (error?: Error | null, row?: R) => void; export type SyncRowTransform = (row: I) => O; export type AsyncRowTransform = (row: I, cb: RowTransformCallback) => void; export type RowTransformFunction = SyncRowTransform | AsyncRowTransform; export declare const isSyncTransform: , O extends Row>(transform: RowTransformFunction) => transform is SyncRowTransform; export type RowValidateCallback = (error?: Error | null, isValid?: boolean, reason?: string) => void; export type SyncRowValidate = (row: R) => boolean; export type AsyncRowValidate = (row: R, cb: RowValidateCallback) => void; export type RowValidate = AsyncRowValidate | SyncRowValidate; export declare const isSyncValidate: >(validate: RowValidate) => validate is SyncRowValidate; export type HeaderArray = (string | undefined | null)[]; export type HeaderTransformFunction = (headers: HeaderArray) => HeaderArray;