import { type $strict, type $ZodArrayDef, type $ZodBoolean, type $ZodDiscriminatedUnionDef, type $ZodLazyDef, type $ZodLiteral, type $ZodNull, type $ZodNullableDef, type $ZodNumber, type $ZodObjectConfig, type $ZodObjectDef, type $ZodOptionalDef, type $ZodReadonlyDef, type $ZodShape, type $ZodString, type $ZodTransform, type $ZodTupleDef, type $ZodType, type $ZodTypeInternals, type $ZodUndefined, type $ZodUnionDef, type util as zodUtil } from 'zod/v4/core'; import { type CustomScalarSchema } from './custom-scalar.ts'; interface ZodLazyGh4611IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodLazyDef; }; } interface ZodNullableGh4611IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodNullableDef; }; } interface ZodOptionalGh4611IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodOptionalDef; }; } interface ZodReadonlyGh4611IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodReadonlyDef; }; } interface ZodPipeGh4611IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: { readonly type: 'pipe'; readonly in: A; readonly out: B; }; }; } interface ZodObjectGh6015IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodObjectDef; readonly config: Config; }; } interface ZodArrayGh6015IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodArrayDef; }; } interface ZodUnionGh6015IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodUnionDef; }; } interface ZodDiscriminatedUnionGh6015IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodDiscriminatedUnionDef; readonly propValues: zodUtil.PropValues; }; } interface ZodTupleGh6015IssueWorkaround extends $ZodType { readonly _zod: $ZodTypeInternals & { readonly def: $ZodTupleDef; }; } export interface StrictObjectSchema extends ZodObjectGh6015IssueWorkaround { } export declare function isStrictObjectSchema(schema: unknown): schema is StrictObjectSchema; type LiteralSchema = $ZodLiteral | $ZodLiteral | $ZodLiteral | $ZodLiteral; type PrimitiveSchema = $ZodBoolean | $ZodNull | $ZodNumber | $ZodString | $ZodUndefined | LiteralSchema; type FragmentUnionOptionShape = FieldShape & { readonly __typename: PrimitiveSchema; }; export interface FragmentUnionOptionSchema extends StrictObjectSchema { } interface FieldTuple extends ZodTupleGh6015IssueWorkaround { } export interface FieldArray extends ZodArrayGh6015IssueWorkaround { } interface FieldDiscriminatedUnion extends ZodDiscriminatedUnionGh6015IssueWorkaround { } interface FieldUnion extends ZodUnionGh6015IssueWorkaround { } export type NonWrappedFieldSchema = CustomScalarSchema<$ZodType> | FieldArray | FieldDiscriminatedUnion | FieldTuple | FieldUnion | PrimitiveSchema | StrictObjectSchema; interface FieldLazy extends ZodLazyGh4611IssueWorkaround { } interface FieldNullable extends ZodNullableGh4611IssueWorkaround { } interface FieldOptional extends ZodOptionalGh4611IssueWorkaround { } interface FieldReadonly extends ZodReadonlyGh4611IssueWorkaround { } interface FieldPipe extends ZodPipeGh4611IssueWorkaround { } export type WrappedFieldSchema = FieldLazy | FieldNullable | FieldOptional | FieldPipe | FieldReadonly; export type FieldSchema = NonWrappedFieldSchema | WrappedFieldSchema; type UnwrappedChainResult = { unwrappedSchema: NonWrappedFieldSchema; wrapperElements: readonly WrappedFieldSchema[]; }; export declare function unwrapFieldSchemaChain(parent: FieldSchema): UnwrappedChainResult; export declare function unwrapFieldSchema(parent: FieldSchema): NonWrappedFieldSchema; export interface FieldShape { [key: string]: FieldSchema; } export type QuerySchema = StrictObjectSchema | ZodReadonlyGh4611IssueWorkaround>; type FieldSchemaTupleItems = readonly [FieldSchema, ...FieldSchema[]]; export type FieldSchemaTuple = ZodTupleGh6015IssueWorkaround; export type ObjectOrListSchema = FieldArray | FieldSchemaTuple | StrictObjectSchema; export declare function isFieldArraySchema(schema: FieldSchema): schema is FieldArray; export declare function isFieldTupleSchema(schema: FieldSchema): schema is FieldSchemaTuple; export declare function isObjectOrListSchema(schema: FieldSchema): schema is ObjectOrListSchema; export type FragmentsSchema = ZodDiscriminatedUnionGh6015IssueWorkaround; export declare function isFragmentsSchema(schema: FieldSchema): schema is FragmentsSchema; export type UnionOrListSchema = FieldArray | FieldSchemaTuple | FragmentsSchema; export declare function isUnionOrListSchema(schema: FieldSchema): schema is UnionOrListSchema; export {}; //# sourceMappingURL=query-schema.d.ts.map