export type JsonSchema = Record; export declare function includesType(schema: JsonSchema, type: string): boolean; /** * Prepares a schema for json-schema-faker's `generate()` so the Example tab * shows something plausible and consistent with the Schema tab: * * - Leftover `$ref` nodes (resolveDocument's cycle cut-points) are unrolled * exactly one level via `deref`, so a recursive schema's example shows one * real nested occurrence. The second occurrence of the same ref on a path * is cut to `{ type: "null" }` when the target allows null, else `{}`. * Without this, generate() would throw on the unresolvable pointer and the * tab would silently render nothing. * - `oneOf`/`anyOf` collapse to their first branch, matching the case * SchemaTree shows by default, instead of letting generate() pick an * unrelated-looking one. * - Plain string fields get placeholder examples (and `*id` fields a uuid * format) instead of random character noise. */ export declare function extendExampleSchema(schema: JsonSchema, deref?: (ref: string) => unknown, active?: Set, refStack?: ReadonlySet): JsonSchema;