import { n as Type, o as TypeMeta } from "./schema-BNke0iHR.cjs"; //#region src/common/schema/serialize.d.ts /** * Plain JSON representation of a schema type */ interface SerializedType { type: string; default?: any; optional?: boolean; meta?: TypeMeta; object?: Record; itemType?: SerializedType; union?: SerializedType[]; enumValues?: any[]; args?: SerializedType[]; ret?: SerializedType; info?: SerializedType; tupleTypes?: SerializedType[]; literalValue?: any; } /** * Serializes a schema Type to a plain JSON object. * Functions in _check and _default will not be serialized. * * @param schema - The schema Type to serialize * @returns A plain JSON object representing the schema */ declare function serializeSchema(schema: Type): SerializedType; /** * Deserializes a plain JSON object back to a schema Type. * Note: Custom _check functions cannot be restored and will use default validators. * * @param serialized - The serialized schema object * @returns A reconstructed Type instance */ declare function deserializeSchema(serialized: SerializedType): Type; //#endregion export { deserializeSchema as n, serializeSchema as r, SerializedType as t }; //# sourceMappingURL=serialize-9GhlcFMv.d.cts.map