import * as z$1 from "zod"; import { GraphQLScalarType, GraphQLScalarTypeConfig } from "graphql"; //#region src/FieldType.d.ts interface FieldTypeConfig extends GraphQLScalarTypeConfig { zod: z$1.ZodType; jsonSchema: unknown | (() => unknown); } type AnyFieldType = FieldType; /** * GraphQL scalar wrapper that carries zod and JSON Schema metadata. * * TInternal is the runtime representation; TExternal is the GraphQL output. */ declare class FieldType extends GraphQLScalarType { private zodSchema; private readonly jsonSchemaDef?; constructor(config: FieldTypeConfig); /** Return the attached zod schema for validation. */ getZod(): z$1.ZodType; /** GraphQL scalar instance usable by Pothos or vanilla GraphQL. */ getPothos(): GraphQLScalarType; /** Return the JSON Schema (evaluates factory if provided). */ getJson(): unknown; getJsonSchemaDef(): unknown | (() => unknown); getJsonSchema(): unknown; } type ZodFieldType = z$1.infer>; //#endregion export { AnyFieldType, FieldType, FieldTypeConfig, ZodFieldType }; //# sourceMappingURL=FieldType.d.ts.map