1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | import ValidatorJS from 'validator';
|
3 | export declare const IS_IDENTITY_CARD = "isIdentityCard";
|
4 | /**
|
5 | * Check if the string is a valid identity card code.
|
6 | * locale is one of ['ES', 'zh-TW', 'he-IL', 'ar-TN'] OR 'any'. If 'any' is used, function will check if any of the locals match.
|
7 | * Defaults to 'any'.
|
8 | * If given value is not a string, then it returns false.
|
9 | */
|
10 | export declare function isIdentityCard(value: unknown, locale: ValidatorJS.IdentityCardLocale): boolean;
|
11 | /**
|
12 | * Check if the string is a valid identity card code.
|
13 | * locale is one of ['ES', 'zh-TW', 'he-IL', 'ar-TN'] OR 'any'. If 'any' is used, function will check if any of the locals match.
|
14 | * Defaults to 'any'.
|
15 | * If given value is not a string, then it returns false.
|
16 | */
|
17 | export declare function IsIdentityCard(locale?: ValidatorJS.IdentityCardLocale, validationOptions?: ValidationOptions): PropertyDecorator;
|