import { ZodTypeSupported } from './types.js'; /** * Options for the secure schema validator */ export interface SecureSchemaValidatorOptions { /** * Whether to perform AST validation */ astValidation?: boolean; /** * Maximum allowed AST nodes to prevent DoS attacks */ maxAstNodes?: number; } /** * Validates a JavaScript expression AST for potentially unsafe operations * * @param ast - The AST to validate * @param parentMap - Map of nodes to their parent nodes * @returns An object with validation result and optional error message */ export declare function validateAst(ast: any, parentMap: WeakMap): { error?: string; isValid: boolean; }; /** * Securely evaluates a Zod schema string using AST validation * * @param schemaString - The schema string to evaluate * @param options - Options for secure evaluation * @returns The evaluated schema or an error */ export declare function secureEvaluateSchema(schemaString: string, options?: SecureSchemaValidatorOptions): { error?: string; schema?: ZodTypeSupported; success: boolean; };