/** * zod-mock — generate realistic, deterministic mock data from Zod schemas. */ /** * Create a deterministic generation session. See {@link createWorld}. * * @example * ```ts * import { createWorld } from "zod4-mock"; * const world = createWorld({ seed: 1 }); * ``` */ export { createWorld } from "./world.js"; /** * Seeded-PRNG helpers. See {@link createPrng}. * * @example * ```ts * import { createPrng } from "zod4-mock"; * const prng = createPrng(1); * ``` */ export { createPrng } from "./prng.js"; import * as dataNs from "./generators/data/index.js"; /** * Built-in field-name heuristic tables. See {@link DEFAULT_KEY_MAP} and * {@link DEFAULT_KEY_PATTERNS}. * * @example * ```ts * import { DEFAULT_KEY_MAP } from "zod4-mock"; * ``` * @example * ```ts * import { DEFAULT_KEY_PATTERNS } from "zod4-mock"; * ``` */ export { DEFAULT_KEY_MAP, DEFAULT_KEY_PATTERNS } from "./generators/index.js"; export type { PrngGen, KeyPattern } from "./generators/index.js"; import { z } from "zod"; import type { GenerateOptions } from "./types.js"; /** * Built-in generators organised into sub-namespaces (`generators.person`, * `generators.internet`, …). Each function takes a `Prng` as its first * argument; pass `ctx.prng` from a matcher or key map. * * @example * ```ts * import { generators } from "zod4-mock"; * * world.withKeyMap(ProductSchema, { * name: (ctx) => generators.person.fullName(ctx.prng), * email: (ctx) => generators.internet.email(ctx.prng), * }); * ``` */ export declare const generators: typeof dataNs; /** * Zero-config entry point. Generates a value from any Zod schema without * any world setup. Internally creates a temporary world and discards it. * * @param schema - Any Zod schema to generate a value from. * @param options - Per-call {@link GenerateOptions} (`seed`, `overrides`, …). * * @example * ```ts * import { generate } from "zod4-mock"; * * const user = generate(UserSchema); * const admin = generate(UserSchema, { overrides: { role: "admin" }, seed: 42 }); * ``` */ export declare function generate(schema: TSchema, options?: GenerateOptions>): z.infer; export type { World, WorldOptions, Registry, GeneratorContext, BoundGenerators, Prng, KeyGenerator, SchemaOpts, MatcherCtx, DeepPartial, GenerateOptions, GenerationDefaults, SchemaKeyMap, ExplainResult, FieldExplanation, RelationExplanation, LocaleData, LastNamePrefix, Currency, } from "./types.js"; export type { WorldTrace, TraceNode, TraceField, TraceEdge, TraceResolution, } from "./trace.js"; //# sourceMappingURL=index.d.ts.map