import { AbstractObjectSchema } from "./schema"; /** * Custom sanitizer schema */ export declare class CustomObjectSchema extends AbstractObjectSchema { /** * Creates a custom object schema. * You can set custom tester and sanitizer functions. * @returns a new instance of CustomObjectSchema */ static create(): CustomObjectSchema; private schema; /** * Constructor * @param test Schema tester * @param sanitize Schema sanitizer */ constructor(test: (object: any) => boolean, sanitize: (object: any) => any); /** * Sets custom tester * @param test Schema tester * @returns self */ withTester(test: (object: any) => boolean): CustomObjectSchema; /** * Sets custom sanitizer * @param sanitize Schema sanitizer * @returns self */ withSanitizer(sanitize: (object: any) => any): CustomObjectSchema; }