import { ValidationRule } from '../interfaces'; import { PresetOptions } from './types'; /** * Creates a SECURE preset with high security but some flexibility * * Blocks: * - All eval-like constructs (including constructor exploits) * - Most dangerous identifiers * - Infinite loops (allows bounded loops) * - Async functions (allows await if needed) * * Allows: * - For/for-of loops with bounds * - Await expressions (but not async function declarations) * * @param options - Optional customization for the preset * @returns Array of configured validation rules * * @example * ```typescript * // High security with flexibility * const rules = createSecurePreset(); * * // Secure with required API calls * const rules = createSecurePreset({ * requiredFunctions: ['callTool'], * minFunctionCalls: 1, * maxFunctionCalls: 10 * }); * * // Secure but also allow while loops * const rules = createSecurePreset({ * allowedLoops: { allowWhile: true } * }); * ``` */ export declare function createSecurePreset(options?: PresetOptions): ValidationRule[];