1 | import { Arbitrary } from '../check/arbitrary/definition/Arbitrary';
|
2 | import { JsonSharedConstraints } from './_internals/helpers/JsonConstraintsBuilder';
|
3 | export { JsonSharedConstraints };
|
4 | /**
|
5 | * For any JSON strings
|
6 | *
|
7 | * Keys and string values rely on {@link string}
|
8 | *
|
9 | * @remarks Since 0.0.7
|
10 | * @public
|
11 | */
|
12 | declare function json(): Arbitrary<string>;
|
13 | /**
|
14 | * For any JSON strings with a maximal depth
|
15 | *
|
16 | * Keys and string values rely on {@link string}
|
17 | *
|
18 | * @param maxDepth - Maximal depth of the generated objects
|
19 | *
|
20 | * @deprecated
|
21 | * Superceded by `fc.json({maxDepth})` - see {@link https://github.com/dubzzz/fast-check/issues/992 | #992}.
|
22 | * Ease the migration with {@link https://github.com/dubzzz/fast-check/tree/main/codemods/unify-signatures | our codemod script}.
|
23 | *
|
24 | * @remarks Since 0.0.7
|
25 | * @public
|
26 | */
|
27 | declare function json(maxDepth: number): Arbitrary<string>;
|
28 | /**
|
29 | * For any JSON strings
|
30 | *
|
31 | * Keys and string values rely on {@link string}
|
32 | *
|
33 | * @param constraints - Constraints to be applied onto the generated instance
|
34 | *
|
35 | * @remarks Since 2.5.0
|
36 | * @public
|
37 | */
|
38 | declare function json(constraints: JsonSharedConstraints): Arbitrary<unknown>;
|
39 | export { json };
|