export interface SchemaRule { type?: string | string[]; required?: boolean; min?: number; max?: number; pattern?: string | RegExp; enum?: any[]; minLength?: number; maxLength?: number; minimum?: number; maximum?: number; exclusiveMinimum?: number; exclusiveMaximum?: number; multipleOf?: number; minItems?: number; maxItems?: number; uniqueItems?: boolean; items?: SchemaRule; properties?: Record; format?: string; } export interface Schema extends Record { properties?: Record; required?: string[]; } export interface ValidationErrorItem { row: number; type: string; field: string; message: string; value?: any; expected?: any; min?: number; max?: number; pattern?: string; allowed?: any[]; } export interface ValidationResult { valid: boolean; errors: ValidationErrorItem[]; warnings: any[]; summary: { totalRows: number; validRows: number; errorCount: number; warningCount: number; }; } export interface ApplySchemaValidationResult { valid: boolean; errors: Array<{ row: number; message: string; data: any; }>; data: any[]; summary: { totalRows: number; validRows: number; errorCount: number; errorRate: number; }; } export interface Validator { validate(data: any[], options?: { stopOnFirstError?: boolean; transform?: boolean; }): ValidationResult; schema?(schema: any): void; field?(field: string, rule: any): void; } export declare function loadSchema(schemaPathOrJson: string): Schema; declare function checkType(value: any, type: string): boolean; export declare function createValidationHook(schema: string | Schema): (row: any, index: number, context: any) => any; export declare function applySchemaValidation(data: any[], schema: string | Schema): ApplySchemaValidationResult; export declare function createValidationHooks(schema: Schema): any; export declare function createSchemaValidators(schema: Schema): Record; export declare function loadSchemaAsync(schemaPathOrJson: string): Promise; export declare function applySchemaValidationAsync(data: any[], schema: string | Schema): Promise; export declare function createAsyncValidationHook(schema: string | Schema): (row: any, index: number, context: any) => Promise; declare const _default: { loadSchema: typeof loadSchema; loadSchemaAsync: typeof loadSchemaAsync; createValidationHook: typeof createValidationHook; createAsyncValidationHook: typeof createAsyncValidationHook; applySchemaValidation: typeof applySchemaValidation; applySchemaValidationAsync: typeof applySchemaValidationAsync; createValidationHooks: typeof createValidationHooks; checkType: typeof checkType; createSchemaValidators: typeof createSchemaValidators; }; export default _default;