import { z, ZodTypeAny } from 'zod'; /** * Zod helper for parsing arrays and ignore items not specified in the schema * * @param zodUnion - union of known types * * @example * const binaryArraySchema = arrayIgnoreUnknown(z.union([z.literal('0'), z.literal('1')])) * type BinaryArray = z.TypeOf * * const binaryArray: BinaryArray = binaryArraySchema.parse(['0', '1', '2', '0']) * console.log(binaryArray) // ['0', '1', '0'] */ export declare function zodArrayIgnoreUnknown(zodType: T): z.ZodEffects, T["_output"][], unknown>;