import { type ConstExpr } from '@skyleague/axioms'; import type { Node } from '../../cst/node.js'; import type { Intrinsic } from '../../cst/types.js'; import type { Schema } from '../../types.js'; import type { SchemaOptions } from '../base.js'; import type { ZodSchema, ZodSchemaAsNode } from '../zod/type.js'; import type { SchemaAsNode } from './node.js'; import type { RefOptions } from './type.js'; import { RefType } from './type.js'; /** * Create a new `RefType` instance with the given options. * * ### Example * ```ts * const foo = $number() * $ref(foo) * * $ref(["foobar", foo]) * ``` * * @param reference - The schema to reference. * @param options - Additional options to pass to the number. * * @group Primitives */ export declare function $ref(reference: ConstExpr, options?: SchemaOptions): RefType>; export declare function $ref(reference: T, options?: SchemaOptions): ZodSchemaAsNode; export declare function $ref(reference: Schema, options?: SchemaOptions): SchemaAsNode;