import type { ObjectSchema, ValidateOptions } from 'yup'; import type { Obj, ValidationFunction, Extender } from '@felte/common'; export type ValidatorConfig = { schema: ObjectSchema; level?: 'error' | 'warning'; castValues?: boolean; }; export declare function validateSchema(schema: ObjectSchema, options?: ValidateOptions): ValidationFunction; export declare function validator({ schema, level, castValues, }: ValidatorConfig): Extender; //# sourceMappingURL=index.d.ts.map