/** * Convenience helpers for accessing UDP field metadata and step schemas. * * Mirrors the dating-schema field-helpers.ts pattern: * pre-built lookup maps with getFieldOptions() and getFieldMeta(). * * @module udp-schema/field-helpers */ import type { z } from 'zod'; import type { FieldOption, ProfileField } from './profile-fields/types.js'; /** * Get the `{ value, label, description }` options array for a field by its key. * * @example * ```ts * import { getFieldOptions } from 'udp-schema'; * const opts = getFieldOptions('gender'); * // → [{ value: 'man', label: 'Man' }, { value: 'woman', label: 'Woman' }, ...] * ``` */ export declare function getFieldOptions(fieldKey: string): readonly FieldOption[]; /** * Get full field metadata (label, description, step, type, options, etc.) by key. * * @example * ```ts * import { getFieldMeta } from 'udp-schema'; * const meta = getFieldMeta('familyReligion'); * // → { key: 'familyReligion', label: 'Family Religion', type: 'single_select', step: 1, options: [...], ... } * ``` */ export declare function getFieldMeta(fieldKey: string): ProfileField | undefined; /** * Get the Zod schema for a given step number. * Use `.partial().parse(data)` for sub-step saves. */ export declare function getStepSchema(stepNumber: number): z.ZodObject | undefined; /** * Get the list of field keys that are immutable after volunteer approval. */ export declare function getImmutableFields(): readonly string[]; //# sourceMappingURL=field-helpers.d.ts.map