import { z } from 'zod'; /** * Validation result type */ export type ValidationResult = true | string; /** * Validate input using a Zod schema */ export declare function validateWithSchema(schema: z.ZodSchema, data: unknown): ValidationResult; /** * Common validation functions */ export declare const validators: { /** * Validate email format */ email: (value: string) => ValidationResult; /** * Validate URL format */ url: (value: string) => ValidationResult; /** * Validate non-empty string */ nonEmptyString: (value: string) => ValidationResult; /** * Validate positive number */ positiveNumber: (value: number) => ValidationResult; /** * Validate array with minimum length */ minArrayLength: (minLength: number) => (value: unknown[]) => ValidationResult; /** * Validate object has required properties */ hasProperties: (properties: string[]) => (value: Record) => ValidationResult; }; /** * Common Zod schemas */ export declare const schemas: { /** * URL schema */ url: z.ZodString; /** * Email schema */ email: z.ZodString; /** * Non-empty string schema */ nonEmptyString: z.ZodString; /** * Positive number schema */ positiveNumber: z.ZodNumber; /** * Port number schema */ port: z.ZodNumber; /** * Timeout schema (in milliseconds) */ timeout: z.ZodNumber; /** * Retry count schema */ retryCount: z.ZodNumber; }; /** * Validate input function (for backward compatibility) */ export declare function validateInput(input: unknown, validator?: (input: unknown) => ValidationResult): ValidationResult; /** * Validate output function (for backward compatibility) */ export declare function validateOutput(output: unknown, validator?: (output: unknown) => ValidationResult): ValidationResult; //# sourceMappingURL=validators.d.ts.map