import type { Arbitrary, Dependent } from '@skyleague/axioms'; import type { z as z3 } from 'zod/v3'; import { z as z4 } from 'zod/v4'; import { Node } from '../../cst/node.js'; import type { ThereforeVisitor } from '../../cst/visitor.js'; import type { Schema } from '../../types.js'; export interface ArbitraryContext { references: Map Arbitrary>; transform: (node: Node, arbitrary: Arbitrary) => Arbitrary; arbitrary: (node: Node) => Arbitrary; } export declare function buildContext(): ArbitraryContext; export declare const regexArbitrary: (regex: string | RegExp) => Dependent; export declare const arbitraryVisitor: ThereforeVisitor, ArbitraryContext>; /** * Create an arbitrary from the compiled Therefore schema. * * ### Example * ```ts * random(arbitrary(HelloWorld)) * // => "hello world" * ``` * * @param schema - The schema to generate an arbitrary for. * * @group Arbitrary */ export declare function arbitrary>(schema: S): S extends Schema ? Dependent : never; export declare function arbitrary(schema: T): Dependent; export declare function arbitrary(schema: T): Dependent; export declare function arbitrary(schema: Node & { infer: T; }): Dependent;