import { MixedType, schemaSpecKey } from './MixedType'; import { PlainObject, SchemaDeclaration, CheckResult, ErrorMessageType } from './types'; import { ObjectTypeLocale } from './locales'; export declare class ObjectType extends MixedType { [schemaSpecKey]: SchemaDeclaration; constructor(errorMessage?: E | string); check(value?: PlainObject, data?: DataType, fieldName?: string | string[]): CheckResult; checkAsync(value?: PlainObject, data?: DataType, fieldName?: string | string[]): Promise>; /** * @example * ObjectType().shape({ * name: StringType(), * age: NumberType() * }) */ shape(fields: SchemaDeclaration): this; } export default function getObjectType(errorMessage?: E): ObjectType;