import { z } from 'zod'; import type { Z } from './functor.js'; export type HasTypeName = { _zod: { def: { type: T; }; }; }; export { typeOf as typeof }; /** * ## {@link typeOf `typeof`} * * Extract the type (previously called 'typeName') from a zod@4 schema. */ declare const typeOf: (hasType: HasTypeName) => T; export { hasAnyTypeName as hasTypeName }; declare const hasAnyTypeName: (u: unknown) => u is { _zod: { def: { type: string; }; }; }; export type AnyTypeName = Exclude; export type TypeName = { [K in AnyTypeName]: K; }; export declare const TypeName: { any: "any"; array: "array"; bigint: "bigint"; boolean: "boolean"; catch: "catch"; custom: "custom"; date: "date"; default: "default"; enum: "enum"; file: "file"; int: "int"; intersection: "intersection"; lazy: "lazy"; literal: "literal"; map: "map"; nan: "nan"; never: "never"; nonoptional: "nonoptional"; null: "null"; nullable: "nullable"; number: "number"; object: "object"; optional: "optional"; pipe: "pipe"; prefault: "prefault"; promise: "promise"; readonly: "readonly"; record: "record"; set: "set"; string: "string"; success: "success"; symbol: "symbol"; template_literal: "template_literal"; transform: "transform"; tuple: "tuple"; undefined: "undefined"; union: "union"; unknown: "unknown"; void: "void"; }; export declare const tagged: { (tag: K): (x: unknown) => x is Z.Lookup; (tag: K, x: unknown): x is Z.ZodLookup; }; export declare const TypeNames: ("string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "optional" | "int" | "null" | "void" | "never" | "any" | "unknown" | "date" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "custom")[]; export declare const NS: "@traversable/zod::"; export type Sym = typeof Sym; export declare const Sym: { array: symbol; catch: symbol; custom: symbol; default: symbol; intersectionLeft: symbol; intersectionRight: symbol; lazy: symbol; literal: symbol; mapKey: symbol; mapValue: symbol; nonoptional: symbol; null: symbol; nullable: symbol; object: symbol; optional: symbol; pipe: symbol; prefault: symbol; promise: symbol; readonly: symbol; recordKey: symbol; recordValue: symbol; set: symbol; success: symbol; transform: symbol; tuple: symbol; union: symbol; }; //# sourceMappingURL=typename.d.ts.map