/** * Near-Me Helpers * =============== * Shared Zod utilities for near-me schemas (geo, phone, url, time). */ import { z } from 'zod'; /** * Converts empty / whitespace-only strings to `undefined` * so Zod `.optional()` treats them as "not provided". */ export declare const emptyStringToUndefined: (value: unknown) => unknown; /** Optional trimmed string, empty coerced to `undefined`. `max` defaults to 200. */ export declare const optionalTrimmedString: (max?: number) => z.ZodPreprocess>; /** * GeoJSON Point for location storage. * Coordinates: [longitude, latitude] (GeoJSON order). */ export declare const geoJsonPointSchema: z.ZodObject<{ type: z.ZodLiteral<"Point">; coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export type GeoJsonPoint = z.infer; /** Indian phone number: 10 digits (6-9 leading), optional +91 / 0 prefix. */ export declare const phoneSchema: z.ZodString; /** Optional phone (empty -> undefined). */ export declare const optionalPhoneSchema: z.ZodPreprocess>; /** Optional URL (empty -> undefined). */ export declare const optionalUrlSchema: z.ZodPreprocess>; /** Optional email (empty -> undefined). */ export declare const optionalEmailSchema: z.ZodPreprocess>; /** 24-hour clock time string, "HH:MM". */ export declare const timeOfDaySchema: z.ZodString; //# sourceMappingURL=helpers.d.ts.map