import ConfigInterface from "../config/ConfigInterface"; export default class Validation { errors: object; protected data: object; protected configService: any; protected schema: object; protected messages: object; protected rules: object; /** * The size related validation rules. * * @var array */ protected sizeRules: string[]; constructor(data: object, schema: object, messages: object, configService: ConfigInterface); validate(): object; protected validateSchema(schema: any, key?: string): object; protected checkRules(field: string, rules: string): void; protected getRule(rule: string): any; protected makeReplacements(message: string, rule: string, field: string, parameters: any): string; protected getValue(field: string): any; protected getMessage(rule: string, field: string): any; protected getSizeMessage(field: string, rule: string): any; protected getMessageFromLocale(rule: string): any; }