import type { z } from 'zod'; import type { ItemSchema, MapSchema, Schema, Validator } from '../../../schema/index.js'; import type { Extends, If, Or } from '../../../types/index.js'; export type SavedAsAttributes = { [KEY in keyof SCHEMA['attributes']]: SCHEMA['attributes'][KEY]['props'] extends { savedAs: string; } ? KEY : never; }[keyof SCHEMA['attributes']]; export type WithValidate = If, Extends>, z.ZodEffects, z.input>, ZOD_SCHEMA>; export declare const withValidate: (schema: Schema, zodSchema: z.ZodTypeAny) => z.ZodTypeAny;