/** * Options for validating a string parameter */ type IsValidSanitizedStringOptions = { /** * Regular expression pattern that the string must match */ pattern: RegExp; /** * Maximum allowed length (default: 1000) */ maxLength?: number; /** * Whether empty strings are allowed (default: false) */ allowEmpty?: boolean; }; /** * Validates if a string parameter is valid according to the provided options. * Can be undefined/null or a string. * If it's a string, it must match the provided pattern and length constraints. * * @param value - The string parameter from query string (can be undefined, null, or string) * @param options - Validation options including pattern, maxLength, etc. * @returns true if the value is valid (or undefined/null), false otherwise */ export declare function isValidSanitizedString(value: string | undefined | null, options: IsValidSanitizedStringOptions): boolean; export {}; //# sourceMappingURL=validate-and-sanitize-string.d.ts.map