import { Sure } from './core.js'; import { PrettifyRec } from './utils.js'; export type ExtractPrimitives = { [t in keyof TSchema]: InferJustMeta; }; export type InferJustMetaOld = T extends Sure ? { type: 'object'; schema: ExtractPrimitives; } : T extends Sure ? { type: 'optional'; schema: InferJustMeta; } : T extends Sure ? { type: 'array'; schema: InferJustMeta; } : T extends Sure ? Meta : undefined; export type InferJustMeta = T extends Sure ? Meta extends { type: 'object'; schema: infer CSchema; } ? { type: 'object'; schema: ExtractPrimitives; } : Meta extends { type: 'optional'; schema: infer CSchema; } ? { type: 'optional'; schema: InferJustMeta; } : Meta extends { type: 'array'; schema: infer CSchema; } ? { type: 'array'; schema: InferJustMeta; } : Meta : undefined; export declare function justMeta>(insure: TSchema): PrettifyRec>; export declare function metaToJsonSchema(meta: TMeta): any; //# sourceMappingURL=meta_wip.d.ts.map