import { CodeChunk, DocType } from '../types'; export declare class ValidationError extends Error { field?: string | undefined; value?: any | undefined; constructor(message: string, field?: string | undefined, value?: any | undefined); } export declare class ValidationUtils { /** * Validates that a value is not null or undefined */ static required(value: T | null | undefined, fieldName: string): T; /** * Validates that a string is not empty or whitespace */ static nonEmptyString(value: string | null | undefined, fieldName: string): string; /** * Validates that a number is within a valid range */ static numberInRange(value: number | null | undefined, fieldName: string, min?: number, max?: number): number; /** * Validates that an array is not empty */ static nonEmptyArray(value: T[] | null | undefined, fieldName: string): T[]; /** * Validates file path exists and is accessible */ static validFilePath(value: string | null | undefined, fieldName: string): string; /** * Validates that a DocType is valid */ static validDocType(value: string | null | undefined, fieldName: string): DocType; /** * Validates CodeChunk structure */ static validCodeChunk(chunk: any, index: number): CodeChunk; /** * Validates temperature value for AI models */ static validTemperature(value: number | null | undefined, fieldName: string): number; /** * Validates max tokens for AI models */ static validMaxTokens(value: number | null | undefined, fieldName: string): number; /** * Safely extracts string from potentially unsafe input */ static safeString(value: unknown): string; /** * Safely extracts number from potentially unsafe input */ static safeNumber(value: unknown, defaultValue?: number): number; /** * Validates API key format (basic validation) */ static validApiKey(value: string | null | undefined, fieldName: string): string; } //# sourceMappingURL=validation.d.ts.map