1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | export type IsIpVersion = '4' | '6' | 4 | 6;
|
3 | export declare const IS_IP = "isIp";
|
4 | /**
|
5 | * Checks if the string is an IP (version 4 or 6).
|
6 | * If given value is not a string, then it returns false.
|
7 | */
|
8 | export declare function isIP(value: unknown, version?: IsIpVersion): boolean;
|
9 | /**
|
10 | * Checks if the string is an IP (version 4 or 6).
|
11 | * If given value is not a string, then it returns false.
|
12 | */
|
13 | export declare function IsIP(version?: IsIpVersion, validationOptions?: ValidationOptions): PropertyDecorator;
|