type DataType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object';
export interface ValidationRule {
    type: DataType;
    required?: boolean;
    defaultValue?: any;
    transform?: (value: any) => any;
}
export interface ValidationResult {
    isValid: boolean;
    errors: string[];
}
export declare class DataValidator {
    private rules;
    constructor(rules: Record<string, ValidationRule>);
    validate(data: Record<string, any>): ValidationResult;
    private isValidType;
}
export declare class DataConverter {
    static convert(value: any, targetType: DataType): any;
    static handleError(error: Error, context: string): void;
}
export {};
//# sourceMappingURL=dataValidator.d.ts.map