import { Validator, ValidatorReturnType } from './transformer'; export declare type ObjectValueValidator = Validator & { optional?: boolean; }; export declare type ObjectDefinition = Record; declare type FilterObject = { [k in keyof T]: T[k] extends C ? k : never; }; declare type MatchingKeys = FilterObject[keyof T]; declare type NotFilterObject = { [k in keyof T]: T[k] extends C ? never : k; }; declare type NonMatchingKeys = NotFilterObject[keyof T]; declare type MandatoryKeys = NonMatchingKeys; declare type OptionalKeys = MatchingKeys; export declare type ObjectResult = { [k in MandatoryKeys]: ValidatorReturnType; } & { [k in OptionalKeys]?: ValidatorReturnType; }; export interface ObjectOptions { allowExcessProperties?: boolean; allErrors?: boolean; } export declare function object(definition: D, { allowExcessProperties, allErrors }?: ObjectOptions): Validator>; export declare function defaultTo(validator: Validator, _default: D | (() => D)): Validator; export declare function optional(validator: Validator): Validator & { optional: true; }; export {};