import { QueryField } from '../../../../utils/nestjs-shared'; import { z, ZodObject } from 'zod'; import { ObjectLiteral } from '../../../../types'; import { AllFieldWithType, ArrayPropsForEntity, RelationTree, ResultGetField } from '../../types'; import { ZodFieldsQuery } from './fields'; import { ZodFilterQuery } from './filter'; import { ZodSortQuery } from './sort'; import { ZodIncludeQuery } from './include'; import { ZodPageInputQuery } from '../zod-share'; type Shape = { [QueryField.fields]: ZodFieldsQuery; [QueryField.filter]: ZodFilterQuery; [QueryField.include]: ZodIncludeQuery; [QueryField.sort]: ZodSortQuery; [QueryField.page]: ZodPageInputQuery; }; declare function getZodResultSchema(shape: Shape): ZodObject, 'strict'>; export declare function zodQuery(entityFieldsStructure: ResultGetField, entityRelationStructure: RelationTree, propsArray: ArrayPropsForEntity, propsType: AllFieldWithType): ZodResultSchema; export type ZodResultSchema = ReturnType>; export type ZodQuery = ReturnType>; export type Query = z.infer>; declare function zodQueryOne(entityFieldsStructure: ResultGetField, entityRelationStructure: RelationTree, propsArray: ArrayPropsForEntity, propsType: AllFieldWithType): ZodObject, QueryField.fields | QueryField.include>, 'strict'>; export type ZodQueryOne = ReturnType>; export type QueryOne = z.infer>; export {};