import { z } from 'zod'; import { $ZodFunctionArgs, $ZodFunctionOut, $ZodType, util, $ZodRecordKey } from 'zod/v4/core'; export declare function isString(schema: $ZodType): schema is z.ZodString; export declare function isNumber(schema: $ZodType): schema is z.ZodNumber; export declare function isBoolean(schema: $ZodType): schema is z.ZodBoolean; export declare function isNull(schema: $ZodType): schema is z.ZodNull; export declare function isLiteral(schema: $ZodType): schema is z.ZodLiteral; export declare function isUndefined(schema: $ZodType): schema is z.ZodUndefined; export declare function isUnknown(schema: $ZodType): schema is z.ZodUnknown; export declare function isNever(schema: $ZodType): schema is z.ZodNever; export declare function isAny(schema: $ZodType): schema is z.ZodAny; export declare function isArray(schema: $ZodType): schema is z.ZodArray; export declare function isObject(schema: $ZodType): schema is z.ZodObject; export declare function isTuple(schema: $ZodType): schema is z.ZodTuple; export declare function isRecord(schema: $ZodType): schema is z.ZodRecord; export declare function isEnum(schema: $ZodType): schema is z.ZodEnum; export declare function isUnion(schema: $ZodType): schema is z.ZodUnion<[z.ZodTypeAny, ...z.ZodTypeAny[]]>; export declare function isOptional(schema: $ZodType): schema is z.ZodOptional; export declare function isNullable(schema: $ZodType): schema is z.ZodNullable; export declare function isDefault(schema: $ZodType): schema is z.ZodDefault; export declare function isFunction(schema: $ZodType): schema is z.ZodFunction<$ZodFunctionArgs, $ZodFunctionOut>; /** * Gets the element type from an array schema */ export declare function getArrayElement(schema: z.ZodArray): z.ZodTypeAny; /** * Gets the shape from an object schema */ export declare function getObjectShape(schema: z.ZodObject): z.ZodRawShape; /** * Gets the items from a tuple schema */ export declare function getTupleItems(schema: z.ZodTuple): readonly $ZodType[]; /** * Gets the key and value types from a record schema */ export declare function getRecordTypes(schema: z.ZodRecord): { keyType: $ZodRecordKey; valueType: $ZodType; }; /** * Gets the enum values from an enum schema */ export declare function getEnumValues(schema: z.ZodEnum): util.EnumValue[]; export declare function getLiteralValue(schema: z.ZodLiteral): string | number | boolean | null; /** * Gets the options from a union schema */ export declare function getUnionOptions(schema: z.ZodUnion<[z.ZodTypeAny, ...z.ZodTypeAny[]]>): z.ZodTypeAny[]; /** * Unwraps an optional schema to get its inner type */ export declare function unwrapOptional(schema: z.ZodOptional): z.ZodTypeAny; /** * Unwraps a nullable schema to get its inner type */ export declare function unwrapNullable(schema: z.ZodNullable): z.ZodTypeAny; /** * Unwraps a default schema to get its inner type and default value */ export declare function unwrapDefault(schema: z.ZodDefault): { defaultValue: unknown; innerType: z.ZodTypeAny; }; /** * Gets function arguments and return type from a function schema */ export declare function getFunctionSignature(schema: z.ZodFunction<$ZodFunctionArgs, $ZodFunctionOut>): { args: $ZodFunctionArgs; returns: $ZodFunctionOut; }; /** * Checks if a number schema has integer constraint */ export declare function isNumberInteger(schema: z.ZodNumber): boolean; /** * Gets metadata from a schema if it has been set with .meta() */ export declare function getMeta(schema: $ZodType): Record | undefined; /** * Gets a comment string from metadata. * If meta only contains a description key, returns the description string. * Otherwise, returns a JSON representation of the entire meta object. */ export declare function getMetaDescription(schema: $ZodType): string | undefined;