export default class Context { private key; private value; constructor(key: string, value: V); assert(assertFunc: (value: V) => boolean, message?: string | ((value?: V, key?: string) => string)): this; transform(getValue: (value: V) => R): Context; asEnum(validValues: V[]): this; asRegex(regex: RegExp): this; asLowerCase(): Context; asUpperCase(): Context; asBoolean(): Context; asInt(): Context; asFloat(): Context; greater(n: number): any; greaterOrEqual(n: number): Context; less(n: number): Context; lessOrEqual(n: number): Context; asJson(): Context; asJsonArray(): Context<[any]>; asPort(): Context; }