import { IAnySchema } from '~/domain/entities/schemas/any-schema'; import { JoiSchema } from '~/infra/joi/helper/joi-types'; import { IGetSchema } from '~/infra/joi/protocols/get-joi-schema'; export interface IParseNestedSchemas { readonly getSchema: IGetSchema.Any; parseSchema: { (schema: IAnySchema): JoiSchema; (value: T): T; }; parseRules(rules: any): any; }